# SDL, gcc and windows

**URL:** <https://discourse.libsdl.org/t/sdl-gcc-and-windows/8042>\
**Category:** SDL Development\
**Created:** [January 5, 2003, 2:20am UTC](https://discourse.libsdl.org/t/sdl-gcc-and-windows/8042 "2003-01-05T02:20:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan\_Donndorf](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@Stephan\_Donndorf](https://discourse.libsdl.org/u/Stephan_Donndorf)\
**Post date:** [January 5, 2003, 2:20am UTC](https://discourse.libsdl.org/t/sdl-gcc-and-windows/8042/1 "2003-01-05T02:20:01Z")

</div>

Hello.

I have got a problem: I tried to compile SDL-1.2.4 and SDL-1.2.5 under  
Microsoft Windows 98 SE with the gcc-2.95.2 and the cross-compiling-tools  
([cross-configure.sh](http://cross-configure.sh) and [cross-make.sh](http://cross-make.sh)) , but I got the following mistake:

mkdir .libs  
gcc -DPACKAGE=“SDL” -DVERSION=“1.2.5” -DHAVE\_ALLOCA=1 -I. -I. -g -O2  
-Wall -DENABLE\_DUMMYVIDEO -DDISKAUD\_SUPPORT -I…/…/…/src/video/wincommon  
-DENABLE\_WIN DIB -DENABLE\_DIRECTX -DUSE\_ASMBLIT -I./hermes  
-I…/…/…/src/hermes -I…/…/…/include -I…/…/…/include/SDL  
-I…/…/…/src -I…/…/…/src/win32 -I…/…/…/src/main -I…/…/…/src/audio  
-I…/…/…/src/video -I…/…/…/src/video/XFree86/extensions  
-I…/…/…/src/events -I…/…/…/src/joystick -I…/…/…/src/cdrom  
-I…/…/…/src/thread -I…/…/…/src/timer -I…/…/…/src/endian  
-I…/…/…/src/file -c SDL\_sysevents.c -DPIC -o .libs/SDL\_sysevents.lo  
SDL\_sysevents.c: In function `SDL_RestoreGameMode': SDL_sysevents.c:83:`CDS\_FULLSCREEN’ undeclared (first use in this function)  
SDL\_sysevents.c:83: (Each undeclared identifier is reported only once  
SDL\_sysevents.c:83: for each function it appears in.)  
SDL\_sysevents.c: In function `SDL\_RegisterApp’:  
SDL\_sysevents.c:621: warning: assignment from incompatible pointer type  
make[3]: \*\*\* [SDL\_sysevents.lo] Error 1  
make[2]: \*\*\* [all-recursive] Error 1  
make[1]: \*\*\* [all-recursive] Error 1  
make: \*\*\* [all-recursive] Error 1

Can anybody help me?–

Stephan Donndorf

---

<div class="post-metadata">

**Author:** ![Niels\_Wagenaar](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/n/9dc877/32.png) [@Niels\_Wagenaar](https://discourse.libsdl.org/u/Niels_Wagenaar)\
**Post date:** [January 5, 2003, 6:22am UTC](https://discourse.libsdl.org/t/sdl-gcc-and-windows/8042/2 "2003-01-05T06:22:01Z")

</div>

Hello Stephan,

I would recommend you to download the latest mingw or Cygwin  
versions. These are binaries based upon GCC but for Windows.

You can download mingw + msys (shell, etc) from [www.mingw.org](http://www.mingw.org)  
and cygwin from [www.cygwin.com](http://www.cygwin.com).

After the download consult the win32 FAQ on the SDL website  
( [http://www.libsdl.org/faq.php?action=listentries&category=4](http://www.libsdl.org/faq.php?action=listentries&category=4) )  
how to get SDL compiled on these systems (which is just using  
the configure script 😉

This should get you started 🙂

Regards,

Niels Wagenaar\> -----Oorspronkelijk bericht-----

> Van: derweihnachtshase [mailto:derweihnachtshase at [yahoo.de](http://yahoo.de)]  
> Verzonden: zondag 5 januari 2003 11:23  
> Aan: sdl  
> Onderwerp: [SDL] SDL, gcc and windows
> 
> Hello.
> 
> I have got a problem: I tried to compile SDL-1.2.4 and  
> SDL-1.2.5 under  
> Microsoft Windows 98 SE with the gcc-2.95.2 and the  
> cross-compiling-tools  
> (cross-configure.sh and cross-make.sh) , but I got the  
> following mistake:
> 
> mkdir .libs  
> gcc -DPACKAGE="SDL" -DVERSION="1.2.5" -DHAVE\_ALLOCA=1 -I.  
> -I. -g -O2  
> -Wall -DENABLE\_DUMMYVIDEO -DDISKAUD\_SUPPORT  
> -I…/…/…/src/video/wincommon  
> -DENABLE\_WIN DIB -DENABLE\_DIRECTX -DUSE\_ASMBLIT -I./hermes  
> -I…/…/…/src/hermes -I…/…/…/include -I…/…/…/include/SDL  
> -I…/…/…/src -I…/…/…/src/win32 -I…/…/…/src/main  
> -I…/…/…/src/audio  
> -I…/…/…/src/video -I…/…/…/src/video/XFree86/extensions  
> -I…/…/…/src/events -I…/…/…/src/joystick -I…/…/…/src/cdrom  
> -I…/…/…/src/thread -I…/…/…/src/timer -I…/…/…/src/endian  
> -I…/…/…/src/file -c SDL\_sysevents.c -DPIC -o  
> .libs/SDL\_sysevents.lo  
> SDL\_sysevents.c: In function `SDL_RestoreGameMode': SDL_sysevents.c:83: `CDS\_FULLSCREEN’ undeclared (first use in  
> this function)  
> SDL\_sysevents.c:83: (Each undeclared identifier is reported only once  
> SDL\_sysevents.c:83: for each function it appears in.)  
> SDL\_sysevents.c: In function `SDL\_RegisterApp’:  
> SDL\_sysevents.c:621: warning: assignment from incompatible  
> pointer type  
> make[3]: \*\*\* [SDL\_sysevents.lo] Error 1  
> make[2]: \*\*\* [all-recursive] Error 1  
> make[1]: \*\*\* [all-recursive] Error 1  
> make: \*\*\* [all-recursive] Error 1
> 
> Can anybody help me?
> 
> –
> 
> Stephan Donndorf
> 
> * * *
> 
> SDL mailing list  
> SDL at [libsdl.org](http://libsdl.org)  
> [http://www.libsdl.org/mailman/listinfo/sdl](http://www.libsdl.org/mailman/listinfo/sdl)
