Compiles, but does not run :(

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Compiles, but does not run :(

Post by JesusXP »

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
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

try putting the int main() at the end behind the other functions...
just a thought
- be2003
blog
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Post by JesusXP »

I thought as long as I had prototype declarations, it was legal to have main where it was, and functions after it.
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

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...
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

seriously... please state the firmware and host the file along with the makefile
- be2003
blog
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

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 ;)
JesusXP
Posts: 79
Joined: Tue Jan 17, 2006 11:16 am
Location: Ontario, Canada

Post by JesusXP »

Thanks for the help :)...I gotta stop programming high..
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

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

also are you remembering to include all of your LIBS in your makefile
- be2003
blog
Post Reply