delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/11/06:46:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: localhost.localdomain: ronald set sender to blytkerchan AT users DOT sourceforge DOT net using -f
Date: Thu, 11 Dec 2003 14:24:46 +0100
From: Ronald Landheer-Cieslak <blytkerchan AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Link error using g++ 3.3.1
Message-ID: <20031211132446.GC13032@linux_rln.harvest>
References: <3FD857C4 DOT 4050804 AT lia DOT univ-avignon DOT fr>
Mime-Version: 1.0
In-Reply-To: <3FD857C4.4050804@lia.univ-avignon.fr>
User-Agent: Mutt/1.4i
X-Disclaimer: I had nothing to do with it - I swear!
X-loop: linux_rln.harvest

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 :
> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7c): 
> undefined reference to `_WinMain AT 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 AT 16 usually means that there is no main()
function when trying to link an executable..

HTH

rlc

-- 
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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019