X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0	tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Philipp Kraus <philipp.kraus@flashpixx.de>
Subject: Re: linker error libcygwin
Date: Fri, 11 Nov 2011 12:47:52 +0100
Lines: 27
Message-ID: <j9j218$pqc$1@dough.gmane.org>
References: <8DB56F04-18E5-43C3-8080-05565BA1531D@flashpixx.de> <4EBC3E14.9060000@sbcglobal.net> <j9hfb8$638$1@dough.gmane.org> <4EBC730C.4070701@sbcglobal.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Unison/2.1.5
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

