Jump to content
  • Advertisement
Sign in to follow this  
VitaliBR

OpenGL SOIL lib

This topic is 2998 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using the SOIL library to load textures in PNG format.
The Code:: Blocks compiles the code in debug version normally. But at Release, it shows many errors:

..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glGetString@4'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glGetString@4'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glGetString@4'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glGetString@4'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glGetString@4'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| more undefined references to `glGetString@4' follow|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `wglGetProcAddress@4'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexImage2D@36'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexImage2D@36'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glDeleteTextures@8'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glGenTextures@8'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glReadPixels@28'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glGetIntegerv@8'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexImage2D@36'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexImage2D@36'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexImage2D@36'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glGenTextures@8'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexParameteri@12'|
..\..\Simple OpenGL Image Library\lib\libSOIL.a(SOIL.o):SOIL.c|| undefined reference to `glTexImage2D@36'|
||=== Build finished: 38 errors, 0 warnings ===|



I'm linking libSOIL.a and including SOIL.h in my project.

Share this post


Link to post
Share on other sites
Advertisement
It looks like it's missing some openGL methods. Did you add gl to your list of library dependencies in release builds, or only to the debug library dependencies?

Share this post


Link to post
Share on other sites
I managed to fix the problem, was in the file .c of Lib

Taking advantage, I know its my mip-mapping is correct
download: http://www.mediafire.com/?hf4gyzjdy0m

Thanks

[Edited by - VitaliBR on July 12, 2010 8:48:00 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!