This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc Unicode and _WinMain@16

At 12:26 PM 6/2/2004, you wrote:
>At 22:46 01/06/2004 -0400, Larry Hall wrote:
>>This is really a question for the MinGW list at  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
>All of these give the error :  "cannot find entry symbol .." as well
>as the undefined reference to `_WinMain@16' error.
>-e _WinMainCRTStartup
>I don't get the "cannot find entry symbol ...", but still get the undefined
>reference to _WinMain@16.
>I have pretty much exhausted all the search terms I can think of in google,
>so any help would be appreciated.

You don't need to cc me.  I set my reply-to to the list because that's 
where I like to read any replies.

If you can send a simple, small example to the list, I'll see if I can
find some time to try to investigate your problem. 

Larry Hall                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]