Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


SOIL lib


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   -  Reputation: 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.

Sponsor:

#2 furrymaster   Members   -  Reputation: 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   -  Reputation: 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   -  Reputation: 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.



PARTNERS