Re: [Dev-C++] WinMain@16 linker error, help needed
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-04-19 08:32:33
|
WinMain error? you need a winmain function, the entry point to your program, do you have that? WinMain parameters are ifferent I think. >From: NBarnes <nw_...@ya...> >To: dev...@li... >Subject: [Dev-C++] WinMain@16 linker error, help needed >Date: Fri, 18 Apr 2003 22:01:12 -0700 (PDT) > > > 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 > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/mobile |