Hello, all,
I am having some trouble getting Dev-C++ working to compile my current
project. The compile goes fine, but I get one linker error that reads:
C:/DEV-CPP/lib/libmingw32.a(main.o)(.text+0x7f):main.c: undefined
reference to `WinMain@16'
There are several references to errors like this one that I've found
through Google, including several useful looking ones at:
http://cygwin.com/faq/faq_4.html#SEC92
http://www.cygwin.com/ml/cygwin/2001-01/msg00612.html
http://www.bloodshed.net/dev/faq.html#winmain
http://sources.redhat.com/ml/cygwin/1999-05/msg00352.html
However, none of these links quite speak to my problem. Several
refer to adding a main() function to my program, but I already have a
int main(int argc, char *argv[]) {} function, and adding a int main()
function doesn't seem to help.
One of the other major solutions involves tweaking one's linker
command line options. How does one do this in Dev-C++ 4.9.7.8? The
screenshot shown in the help file for the Project Options box does not
correspond to what I see in 4.9.7.8, as my version doesn't have an
text box where I can change the linker options.
In short, I'm confused and could use some help. Thanks to anybody
that can take a few minutes to give me a hand.
NBarnes
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
|