This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Link error using g++ 3.3.1

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
                            ^^^^^^-> 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..



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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]