Link error using g++ 3.3.1
Ronald Landheer-Cieslak
blytkerchan@users.sourceforge.net
Thu Dec 11 13:19:00 GMT 2003
On Thu, Dec 11, 2003 at 12:40:52PM +0100, Jean-Francois bonastre wrote:
> I've just install (using cygwin setup) cygwin and g++ dev tool using the
> latest web install on www.cygnus.com
^^^^^^-> s/nus/win/g ?
> When I try to build an exec, I get a link error :
> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7c):
> undefined reference to `_WinMain@16'
> collect2: ld returned 1 exit status
>
> I linked the cygcheck output to this email.
Have you verified that whatever you're linking has a main() function?
If it does, please post some more useful information about what you're doing,
such as the command-line used for the link, a more exact description of what
you expect it to do, etc.
An undefined reference to _WinMain@16 usually means that there is no main()
function when trying to link an executable..
HTH
rlc
--
When you say that you agree to a thing in principle, you mean that
you have not the slightest intention of carrying it out in practice.
-- Otto Von Bismarck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list