Undefined reference to _IMG_Load

Hi

I am cross compiling under Linux using mingw. At the linl stage, I get a lot of
undefined reference for call to lib function, e.g. SDL. Looks like the linker
thinks the routine name should start with _ , e.g _IMG_Load instead of IMG_Load.

I know this must be a classical problem, but I have no clue of what option to
use in gcc (mingw)

Thanks

Fred

Sorry, this is a mistake. I just simply forgot to put the LD flags
after the list of objects in my makefile

Fred

Fred wrote:>Hi

I am cross compiling under Linux using mingw. At the linl stage, I get a lot of
undefined reference for call to lib function, e.g. SDL. Looks like the linker
thinks the routine name should start with _ , e.g _IMG_Load instead of IMG_Load.

I know this must be a classical problem, but I have no clue of what option to
use in gcc (mingw)

Thanks

Fred


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl