delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/02/12:41:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-Id: <4.3.2.7.2.20040602090818.0184fa10@pop.1and1.com>
X-Sender: m35403774-1 AT pop DOT 1and1 DOT com
Date: Wed, 02 Jun 2004 09:26:08 -0700
To: Cygwin List <cygwin AT cygwin DOT com>
From: Clive Levinson <clivel AT bundu DOT com>
Subject: Re: gcc Unicode and _WinMain AT 16
Cc: cygwin-lh AT cygwin DOT com
In-Reply-To: <6.1.0.6.0.20040601223829.03284470@pop.theworld.com>
References: <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20040601000627 DOT 018162d8 AT popmail DOT compuserve DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20040601000627 DOT 018162d8 AT popmail DOT compuserve DOT com>
Mime-Version: 1.0

At 22:46 01/06/2004 -0400, Larry Hall wrote:

>This is really a question for the MinGW list at mingw.org.  You're using
>the -mno-cygwin switch to gcc which means you're not using Cygwin.  By
>definition, this fact makes the question off-topic for this list.  If
>you google around a bit though, you'll probably find out why you get this
>problem.  Setting UNICODE changes the provided entry point to
>wWinMainCRTStartup.  You'll need to specify this entry point explicitly
>in your link line to get it to build properly.

Hi Larry,
Thanks for the reply, unfortunately -mno-cygwin seems to be a bit
of a step child, the MinGW group considers it a Cygwin topic, and the
Cygwin group considers it a MinGW topic.

I did spend a fair bit of time using google, before posting to the group,
unfortunately I was unable to find an answer, other than realising that I
would need to change the entry point. I have tried various entry points:
-e _wWinMainCRTStartup
-e wWinMainCRTStartup
-e WinMainCRTStartup
etc.
All of these give the error :  "cannot find entry symbol .." as well
as the undefined reference to `_WinMain AT 16' error.
Using
-e _WinMainCRTStartup
I don't get the "cannot find entry symbol ...", but still get the undefined
reference to _WinMain AT 16.
I have pretty much exhausted all the search terms I can think of in google,
so any help would be appreciated.
Regards,
Clive


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