forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiles, but does not run :(

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
JesusXP



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Thu Nov 09, 2006 5:35 pm    Post subject: Compiles, but does not run :( Reply with quote

Hey guys... I'm able to compile this but unable to run. I was wondering if you can see where I'm going wrong.

http://www.rafb.net/paste/results/S4g59t26.html
Back to top
View user's profile Send private message MSN Messenger
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Thu Nov 09, 2006 5:37 pm    Post subject: Reply with quote

try putting the int main() at the end behind the other functions...
just a thought
_________________
- be2003
blog
Back to top
View user's profile Send private message
JesusXP



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Fri Nov 10, 2006 4:07 am    Post subject: Reply with quote

I thought as long as I had prototype declarations, it was legal to have main where it was, and functions after it.
Back to top
View user's profile Send private message MSN Messenger
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri Nov 10, 2006 4:24 am    Post subject: Reply with quote

Well the main can be anywhere you like. However you dont really describe in what way it doesn't run etc, or what firmware you are using or...
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Fri Nov 10, 2006 9:22 am    Post subject: Reply with quote

seriously... please state the firmware and host the file along with the makefile
_________________
- be2003
blog
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Fri Nov 10, 2006 1:48 pm    Post subject: Reply with quote

I've answered this on the thread you posted on QJ.net

It was a 'trying to load a file that doesn't exist' kind of error ;)
Back to top
View user's profile Send private message
JesusXP



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Fri Nov 10, 2006 3:53 pm    Post subject: Reply with quote

Thanks for the help :)...I gotta stop programming high..
Back to top
View user's profile Send private message MSN Messenger
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Fri Nov 10, 2006 4:10 pm    Post subject: Reply with quote

isnt the //prototypes part of your code redundant...

also are you remembering to include all of your LIBS in your makefile
_________________
- be2003
blog
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group