Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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.20040601000627.018162d8@popmail.compuserve.com> X-Sender: m35403774-1 AT pop DOT 1and1 DOT com Date: Tue, 01 Jun 2004 00:17:11 -0700 To: cygwin AT cygwin DOT com From: Clive Levinson Subject: gcc Unicode and _WinMain AT 16 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Hi, I have a simple Windows app that I am building using gcc: gcc -c -Wall -mno-cygwin app.cpp -o app.o windres -i resource.rc -o resource.o gcc -Wall -mno-cygwin app.o -o app.exe resource.o -s -mwindows The app entry is: int WINAPI WinMain(HINSTANCE instance,HINSTANCE prevInstance,LPTSTR cmdLine,int cmdShow) This compiles,builds, and executes fine. However, I need to build a Unicode version of the app. The only change I made was to define UNICODE & _UNICODE before including windows.h. It compiles, but when linking I get the error: main.c: undefined reference to `_WinMain AT 16' If anyone can please help, it would be most appreciated. Thanks, 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/