This is the mail archive of the cygwin 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: linker error libcygwin

On 2011-11-10 22:11:48 +0100, Greg Chicares said:

On 2011-11-10 20:39Z, Kraus Philipp wrote:

I try to build a program with g++ under Cygwin. I added this libraries to the linker:

Shouldn't that be '-lboost_system'? Run 'info ld' and search for '--dll-search-prefix': 'cyg-' is a typical default prefix that the '-l' option should recognize without your specifying it.

okay, thanks for this hint


undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status

Does this thread contain the answer?

no, sorry.

 If this is a console application, does it have
an implementation of main()?

yes the signature of the main is in this example: int main(int argc, char* argv[])

Or if it's a windows GUI application,
is WinMain() implemented in some object file passed to the linker?

No i don't use the WinMain() and I call the compiler / linker with -mconsole but on 3 examples the error with the WinMain is shown, on other examples everything works fine, so I don't understand it



-- Problem reports: FAQ: Documentation: Unsubscribe info:

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