delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/05/15:50:21

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 15:46:41 EST
From: CaetSith7 AT aol DOT com
Subject: Re: -mno-cygwin and SDL
To: <cygwin AT cygwin DOT com>, <sdl AT libsdl DOT org>
Mime-Version: 1.0
X-Mailer: Unknown (No Version)
Message-ID: <166.50fa67c.293fe1b2@aol.com>

CaetSith7 AT aol DOT com wrote:

>ptsekov AT syntrex DOT com wrote:

>>CaetSith7 AT aol DOT com wrote:
>>> 
>>> 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

>>The line above should be changed like this:
>>gcc test1.C -mno-cygwin -I /usr/include -o exec/test1.exe -lglut32
-lglu32 -lopengl32 -lSDL

>>Read the FAQ on cygwin.com it contains a topic on WinMain AT 16.

>I tried your suggestion, but I get the same error.  I also looked at the FAQ,
it did not give me any clues either.

>Shawn Lindberg

I modified my compile commands as per the SDL FAQ so that they it is now:

gcc test1.C -mno-cygwin -I /usr/include -o exec/test1.exe -lglut32 -lglu32 -lopengl32 `sdl-config --cflags --libs`

However, now I get the errors:

In file included from /usr/include/SDL/SDL_rwops.h:35,
                 from /usr/include/SDL/SDL.h:37,
                 from test1.C:19:
/usr/include/stdio.h:157: type specifier omitted for parameter
/usr/include/stdio.h:158: type sepcifier omitted for parameter
..

and so on for lines 159, 189, 194-197, 246-252.

Any ideas?

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