SOIL: new lightweight image loading lib

Started by
129 comments, last by GenPFault 13 years, 10 months ago
Quote:Original post by wittyameta
Hi, I am working on redhat.
Can someone exactly tell me how to link the library.
I put libSOIL.a in /usr/lib folder and SOIL.h file in /usr/include folder.

I included this line in my C++ program #include <SOIL.h>

On compiling it gives the following errors:

/tmp/cc1dkSnQ.o(.text+0x166): In function `glutDisplay()':
: undefined reference to `SOIL_load_OGL_texture'
/tmp/cc1dkSnQ.o(.text+0x17d): In function `glutDisplay()':
: undefined reference to `SOIL_last_result'
collect2: ld returned 1 exit status

Can someone please tell me what's wrong?


How are you invoking gcc? You'll probably need (iirc) a -LSOIL.

This topic is closed to new replies.

Advertisement