Need help desperately with SOIL

Hey, I’m using CodeBlocks, and the site where i downloaded SOIL (lonesock dot net/soil.html) instructed me to include SOIL.h and link libSOIL.a to the project, and everything should work just fine. I unzipped the downloaded file, linked the libSOIL.a included SOIL.h, it compiled fine, but when i try to use SOIL functions it giving me undefined reference errors. Any suggestions maybe?

i managed to solve it, can’t delete thread, so i’ll just post an update maybe someone needs it as i do, dont link soil with path, use -lSOIL and link it before opengl.