Error undefinde reference

169 views Asked by At

I'm trying to use the SOIL (simple opengl image library) in SDL, at compile time (using CodeBlocks in WindowsXP) is giving the following error 57 times:

G:\mingw32\lib\libSOIL.a (SOIL.o) : SOIL.c || undefined reference to `glTexParameteri @ 12 '|.

I think the problem is in OpenGL, however, the functions that are not finding SOIL, are available and working on my project. I am importing the heading soil.h and put thelibSoil.a along with the SDL libs.

The method that is giving error:

int w, h;
unsigned char* image =
    SOIL_load_image("img.png", &w, &h, 0, SOIL_LOAD_RGB);
0

There are 0 answers