linker error libcygwin

Philipp Kraus philipp.kraus@flashpixx.de
Fri Nov 11 11:48:00 GMT 2011


On 2011-11-11 01:57:48 +0100, Greg Chicares said:

> On 2011-11-10 21:22Z, Philipp Kraus wrote:
>> On 2011-11-10 22:11:48 +0100, Greg Chicares said:
>> 
>>> On 2011-11-10 20:39Z, Kraus Philipp wrote:
>>>> 
>>>> undefined reference to `_WinMain@16'
>>>> collect2: ld returned 1 exit status
>>> 
>>> Does this thread
>>> http://cygwin.com/ml/cygwin/2011-10/threads.html#00440
>>> 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[])
> 
> Please show the full linker command, and indicate the name of
> the object file that contains main().

There is only one cpp file within the main, so there is also one object file



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list