i think that is ist… but i don’t know what file i have to link
make.bat
@echo off
del C:\ARFERRARI\MEUS\1940\MAIN.EXE
echo Building resource file…
C:\CPP\BIN\windres --include-dir C:\CPP\INCLUDE\ --include-dir
C:\CPP\INCLUDE\G__~1 --include-dir C:\CPP\INCLUDE\ --use-temp-file -I rc -O
coff -i C:\ARFERRARI\MEUS\1940\RSRC.RC -o C:\ARFERRARI\MEUS\1940\rsrc.o
echo.
echo Compiling files…
C:\CPP\BIN\g++ “c:\arferrari\meus\1940\font.cpp”
“c:\arferrari\meus\1940\main.cpp” -c -ggdb -mwindows -IC:\CPP\INCLUDE
-IC:\CPP\INCLUDE\G__~1 -IC:\CPP\INCLUDE\ -LC:\CPP\LIB\ -BC:\CPP\BIN
echo.
echo Linking files…
C:\CPP\BIN\g++ “c:\arferrari\meus\1940\font.o”
“c:\arferrari\meus\1940\main.o” -o c:\arferr~1\meus\1940\main.exe -lmingw32
-lSDLmain -lSDL -lSDL_mixer C:\ARFERR~1\MEUS\1940\RSRC.o -ggdb -mwindows
-IC:\CPP\INCLUDE\ -IC:\CPP\INCLUDE\G__~1 -IC:\CPP\INCLUDE\ -LC:\CPP\LIB
-BC:\CPP\BIN
echo.
if exist C:\ARFERRARI\MEUS\1940\MAIN.EXE goto OK
echo ERRO NA COMPILACAO!
goto end
:OK
echo COMPILADO COM SUCESSO!
rem C:\ARFERRARI\MEUS\1940\main.exe
:END****************************************************************************
----- Mensagem original -----
De: Milan Babuskov [SMTP:albis at eunet.yu]
Enviada em: quinta-feira, 18 de setembro de 2003 09:51
Para: sdl at libsdl.org
Assunto: Re: RES: [SDL] SDL_SoundRicardo Ferrari (SPO-LAB) wrote:
but when i compile my program (i use mingw32) i receve the follow
error…
undefined reference to `Sound_Init’This looks like you haven’t linked the library with executable.
Can you post your makefile?
–
Milan Babuskov
http://fbexport.sourceforge.net
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl