Problem with xmingw

hi, when i tried to make my progam with cross-make.sh, i got these messages:

g++ -c sdl-config --cflags 0.cpp -Wall
g++ sdl-config --libs 0.o -lSDL_gfx
0.o(.text+0xd):0.cpp: undefined reference to SDL_WaitEvent' 0.o(.text+0x2d):0.cpp: undefined reference toSDL_WaitEvent’
0.o(.text+0x108):0.cpp: undefined reference to SDL_MapRGB' 0.o(.text+0x13d):0.cpp: undefined reference toSDL_FillRect’
0.o(.text+0x184):0.cpp: undefined reference to _imp__stringRGBA' 0.o(.text+0x1b8):0.cpp: undefined reference to_imp__stringRGBA’
0.o(.text+0x1cb):0.cpp: undefined reference to SDL_Flip' 0.o(.text+0x20c):0.cpp: undefined reference toSDL_FillRect’

Jose Ricardo da Silva wrote:

hi, when i tried to make my progam with cross-make.sh, i got these messages:

g++ -c sdl-config --cflags 0.cpp -Wall
g++ sdl-config --libs 0.o -lSDL_gfx
0.o(.text+0xd):0.cpp: undefined reference to SDL_WaitEvent' 0.o(.text+0x2d):0.cpp: undefined reference toSDL_WaitEvent’
0.o(.text+0x108):0.cpp: undefined reference to SDL_MapRGB' 0.o(.text+0x13d):0.cpp: undefined reference toSDL_FillRect’
0.o(.text+0x184):0.cpp: undefined reference to _imp__stringRGBA' 0.o(.text+0x1b8):0.cpp: undefined reference to_imp__stringRGBA’
0.o(.text+0x1cb):0.cpp: undefined reference to SDL_Flip' 0.o(.text+0x20c):0.cpp: undefined reference toSDL_FillRect’

Place sdl-config --libs after -lSDL_gfx

Bye,
Gabry