Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

SOIL lib

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 VitaliBR   Members   

147
Like
0Likes
Like

Posted 11 July 2010 - 02:03 PM

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.

#2 furrymaster   Members   

100
Like
0Likes
Like

Posted 11 July 2010 - 07:29 PM

do u have another compilation version for debug and release? (if not u should have)

#3 Drakonite   Members   

215
Like
0Likes
Like

Posted 11 July 2010 - 09:23 PM

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?

#4 VitaliBR   Members   

147
Like
0Likes
Like

Posted 12 July 2010 - 10:48 AM

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]




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.