delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/16/16:26:50

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <5.1.0.14.0.20030916161551.025b5a20@127.0.0.1>
X-Sender:
Date: Tue, 16 Sep 2003 16:20:30 -0400
To: James MacLean <macleajb AT ednet DOT ns DOT ca>, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: Compiling with Cygwin-1.5.4-1 gives symbol errors
In-Reply-To: <Pine.LNX.4.58.0309161228200.9502@Trademart-1.ednet.ns.ca>
Mime-Version: 1.0

At 01:29 PM 9/16/2003, James MacLean you wrote:
>Hi Folks,
>
>Compiled programs with Cygwin-1.3.22-1, but now, even with fresh Cygwin
>installs, I am getting errors like :
>
>/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
>warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000
>
>and:
>
>Info: resolving _optarg by linking to __imp__optarg (auto-import)
>
>The resulting binaries run, but are not quite working :(. I expect it may
>have something to do with needed to rebuild some of the libraries for the
>new CygWin, but everything not from the CygWin install has been compiled
>locally.
>
>Simple example:
>
>#include <stdio.h>
>
>int main(int argc, char ** argv) {
>  printf("Hello\n");
>  return(4);
>}
>
>gcc -mwindows -o hello hello.c
>
>gives:
>
>/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
>warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000
>
>Simple solution :)?,


Sure.  Eliminate "-mwindows".  But I very much doubt this _warning_ is having
any affect on the ability of your program to run.  Feel free to prove me 
wrong with a concrete example.

The other message you quoted above is informational.  You needn't worry 
about it.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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