- or download this
$ sdl-config --libs
-L/mingw/lib -lmingw32 -lSDLmain -lSDL -mwindows
$ sdl-config --cflags
-I/mingw/include/SDL -Dmain=SDL_main
- or download this
my $sdl_compile_flags = '-O2 -Ie:\msys\1.0\mingw\include\SDL -Dmain=SD
+L_main';
my $sdl_link_flags = '-O2 -Ie:\msys\1.0\mingw\include\SDL -Dmain=SD
+L_main '.
'-LE:\msys\1.0\mingw\lib -lmingw32 -lSDLmain -lSDL';
- or download this
gcc -O2 -IE:\msys\1.0\mingw\include\SDL -Dmain=SDL_main -c SDL_PlaySou
+nd.c
gcc -O2 -IE:\msys\1.0\mingw\include\SDL -Dmain=SDL_main -o SDL_PlaySou
+nd.exe SDL_PlaySound.o -LE:\msys\1.0\mingw\lib -lmingw32 -lSDLmain -l
+SDL -lSDL_mixer -mwindows
- or download this
e:\perl-5.8.7\bin\perl.exe "-Ie:\perl-5.8.7\lib" "-Ie:\perl-5.8.7\lib"
+ "E:\perl-5.8.7\lib\ExtUtils\xsubpp" -noprototypes -typemap "E:\perl-
+5.8.7\lib\ExtUtils\typemap" "src\SDL_perl.xs"gcc -c -s -O2 -DWIN32 -D
+HAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-stri
+ct-aliasing -DPERL_MSVCRT_READFIX -s -O2 -I"E:\perl-5.8.7\lib\CORE" -
+I"E:\msys\1.0\mingw\include" -o "src\SDL_perl.o" "src\SDL_perl.c"
- or download this
dlltool --def "src\SDL_perl.def" --output-exp "blib\arch\auto\SDL_perl
+\SDL_perl.exp"
g++ -o "blib\arch\auto\SDL_perl\SDL_perl.dll" -Wl,--base-file,"src\SDL
+_perl.base" -Wl,--image-base,0x23210000 -mdll -s -Le:\perl-5.8.7\lib\
+CORE -Le:\msys\1.0\mingw\lib -O2 -Ie:\msys\1.0\mingw\include\SDL -Dma
+in=SDL_main -LE:\msys\1.0\mingw\lib -lmingw32 -lSDLmain -lSDL "src\SD
+L_perl.lds" "blib\arch\auto\SDL_perl\SDL_perl.exp"
- or download this
src\SDL_perl.o(.text+0x52f):SDL_perl.c: undefined reference to `SDL_Ge
+tError'
src\SDL_perl.o(.text+0x6e4):SDL_perl.c: undefined reference to `SDL_In
+it'
...
src\SDL_perl.o(.text+0xa48):SDL_perl.c: undefined reference to `SDL_Qu
+itSubSystem'
[ About 40 other errors along the same lines ]
- or download this
g++ -Wl,--base-file,"src\SDL_perl.base" -Wl,--image-base,0x23210000 -s
+ -O2 -o "blib\arch\auto\SDL_perl\SDL_perl.dll" "src\SDL_perl.lds" "bl
+ib\arch\auto\SDL_perl\SDL_perl.exp" -Le:\perl-5.8.7\lib\CORE -LE:\msy
+s\1.0\mingw\lib -lmingw32 -lSDLmain -lSDL -mdll
- or download this
blib\arch\auto\SDL_perl\SDL_perl.exp(.edata+0x50):fake: undefined refe
+rence to `boot_'
blib\arch\auto\SDL_perl\SDL_perl.exp(.edata+0x54):fake: undefined refe
+rence to `boot_'
collect2: ld returned 1 exit status
- or download this
g++ -Wl,--base-file,"src\SDL_perl.base" -Wl,--image-base,0x23210000 -s
+ -O2 -o "blib\arch\auto\SDL_perl\SDL_perl.dll" "src\SDL_perl.lds" "bl
+ib\arch\auto\SDL_perl\SDL_perl.exp" -Le:\perl-5.8.7\lib\CORE -LE:\msy
+s\1.0\mingw\lib -lperl58 -lmingw32 -lSDLmain -lSDL -mdll