delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/05/01:37:31

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 05 Dec 2001 01:36:30 EST
From: CaetSith7 AT aol DOT com
Subject: -mno-cygwin and SDL
To: <cygwin AT cygwin DOT com>
Mime-Version: 1.0
X-Mailer: Unknown (No Version)
Message-ID: <26.1f732de1.293f1a6e@aol.com>

Hi, I downloaded and compiled SDL-1.2.3 from source in cygwin, and suprisingly I got it to work.  Then I tried to set -mno-cygwin so that the app would work outside of Cygwin, but I get:

$ make win
gcc test1.C -mno-cygwin -I /usr/include -lglut32 -lglu32 -lopengl32 -lSDL -o exec/test1.exe
/usr/lib/mingw/libmingw32.a(main.o).text+0x8d):main.c: undefined reference to 'WinMain AT 16'
collect2: ld returned 1 exit status
make: *** [win] Error 1

Does anybody know what's wrong?  Please CC to me since I'm off list.

Thanks,
Shawn Lindberg

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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