public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: -mno-cygwin and SDL
@ 2001-12-06 14:15 CaetSith7
  0 siblings, 0 replies; 6+ messages in thread
From: CaetSith7 @ 2001-12-06 14:15 UTC (permalink / raw)
  To: cygwin, sdl

When I removed the -I /usr/include it seemed to compile fine (the test1.C is just a skeleton so I'll have to test more later).  Thanks for the help,

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -mno-cygwin and SDL
@ 2001-12-05 14:49 Earnie Boyd
  0 siblings, 0 replies; 6+ messages in thread
From: Earnie Boyd @ 2001-12-05 14:49 UTC (permalink / raw)
  To: CU List

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

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.

[-- Attachment #2: cygwin.41253 --]
[-- Type: message/rfc822, Size: 999 bytes --]

From: CaetSith7@aol.com
To: <cygwin@cygwin.com>
Cc: <ptsekov@syntrex.com>
Subject: Re: -mno-cygwin and SDL
Date: Wed, 05 Dec 2001 15:20:28 EST
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


[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -mno-cygwin and SDL
@ 2001-12-05 12:52 CaetSith7
  0 siblings, 0 replies; 6+ messages in thread
From: CaetSith7 @ 2001-12-05 12:52 UTC (permalink / raw)
  To: cygwin, sdl

CaetSith7@aol.com wrote:

>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

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -mno-cygwin and SDL
@ 2001-12-05 12:37 CaetSith7
  0 siblings, 0 replies; 6+ messages in thread
From: CaetSith7 @ 2001-12-05 12:37 UTC (permalink / raw)
  To: cygwin; +Cc: ptsekov

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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -mno-cygwin and SDL
  2001-12-04 22:39 CaetSith7
@ 2001-12-05  0:44 ` Pavel Tsekov
  0 siblings, 0 replies; 6+ messages in thread
From: Pavel Tsekov @ 2001-12-05  0:44 UTC (permalink / raw)
  To: CaetSith7; +Cc: cygwin

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.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* -mno-cygwin and SDL
@ 2001-12-04 22:39 CaetSith7
  2001-12-05  0:44 ` Pavel Tsekov
  0 siblings, 1 reply; 6+ messages in thread
From: CaetSith7 @ 2001-12-04 22:39 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-12-06 21:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-06 14:15 -mno-cygwin and SDL CaetSith7
  -- strict thread matches above, loose matches on Subject: below --
2001-12-05 14:49 Earnie Boyd
2001-12-05 12:52 CaetSith7
2001-12-05 12:37 CaetSith7
2001-12-04 22:39 CaetSith7
2001-12-05  0:44 ` Pavel Tsekov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).