Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3C0EA097.697D472F@yahoo.com>
Date: Wed, 05 Dec 2001 17:32:55 -0500
From: Earnie Boyd <earnie_boyd@yahoo.com>
Reply-To: CU List <Cygwin@cygwin.com>
X-Mailer: Mozilla 4.77 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: CU List <Cygwin@cygwin.com>
Subject: Re: -mno-cygwin and SDL
Content-Type: multipart/mixed;
 boundary="------------C0AA1BB34DC9CF2B5277CBCA"

--------------C0AA1BB34DC9CF2B5277CBCA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

mailbox:/C|/Program
Files/Netscape/Users/earnie_boyd/Mail/Inbox.sbd/Cygwin.sbd/Cygwin
Users?id=1007584625.12707.ezmlm%40cygwin.com&number=15322648&part=1.31

I just had this discussion this morning on cygwin-apps.

You can't add -I/usr/include when using -mno-cygwin.  -mno-cygwin causes
the MinGW header files to be used and not Cygwin's "on purpose". 
Circumventing that will cause you to fail.  MinGW only supports ANSI C
as MS sees it with a few "add-ons".  DON'T -I/usr/include WHEN USING
-mno-cygwin.

Earnie.
--------------C0AA1BB34DC9CF2B5277CBCA
Content-Type: message/rfc822;
 name="cygwin.41253"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="cygwin.41253"

Date: Wed, 05 Dec 2001 15:20:28 EST
From: CaetSith7@aol.com
Subject: Re: -mno-cygwin and SDL
To: <cygwin@cygwin.com>
Cc: <ptsekov@syntrex.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Message-ID: <28.1edc8872.293fdb8e@aol.com>

ptsekov@syntrex.com wrote:

>CaetSith7@aol.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@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


--------------C0AA1BB34DC9CF2B5277CBCA
Content-Type: text/plain; charset=us-ascii

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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

