This is the mail archive of the
mailing list for the Cygwin project.
Re: Link error using g++ 3.3.1
- From: Ronald Landheer-Cieslak <blytkerchan at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 11 Dec 2003 14:24:46 +0100
- Subject: Re: Link error using g++ 3.3.1
- References: <3FD857C4.email@example.com>
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 :
> 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..
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