adding SOIL library issues

I am trying to use SOIL to add textures to my program using OpenGL. My IDE is Dev c++. I am getting some sort of error about a SOIL function. This is my compiler log:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Compiler: Default compiler
Building Makefile: "C:\Users\Eli\Documents\C++\Learning OpenGL\blank\Makefile.win"
Executing  make...
make.exe -f "C:\Users\Eli\Documents\C++\Learning OpenGL\blank\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Program Files (x86)/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Program Files (x86)/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Program Files (x86)/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Program Files (x86)/Dev-Cpp/include/c++/3.4.2"  -I"C:/Program Files (x86)/Dev-Cpp/include"   

g++.exe main.o  -o "Project1.exe" -L"C:/Program Files (x86)/Dev-Cpp/lib" -mwindows -lopengl32 

main.o(.text+0x13e):main.cpp: undefined reference to `SOIL_load_OGL_texture'
collect2: ld returned 1 exit status

make.exe: *** [Project1.exe] Error 1

Execution terminated 

I tried adding the SOIL library. I downloaded it from http://www.lonesock.net/soil.html
I took the file in the lib folder and added it to Dev's lib folder. I also added the src/SOIL.h to Dev's include folder.
Does anyone know how to fix this error? I'm not sure, but I may have messed up adding the SOIL library.
You need to instruct your IDE that you want to link against the SOIL library. Just putting it somewhere on your hard drive is not enough.
thanks, I added "-lSOIL.h" to make it work; however, that confuses me. What does this "lSOIL.h" refer to? As far as I'm aware I have no file titled "lSOIL.h" on my hard drive.
What about just -lSOIL ? Does that work, in place of -lSOIL.h
yeah, after double checking, I realize that I did use -lSOIL
either way, what is that pointing to?
-l instructs the linker to link to a library, so -lSOIL instructs to link to the SOIL library, named libSOIL.a
Topic archived. No new replies allowed.