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

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
and cygwin from www.cygwin.com.

After the download consult the win32 FAQ on the SDL website
( 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 :wink:

This should get you started :slight_smile:

Regards,

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

Van: derweihnachtshase [mailto:derweihnachtshase at 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://www.libsdl.org/mailman/listinfo/sdl