How to compile using DevIL Library for textures on C++

Started by
2 comments, last by SulphurTenM 15 years, 10 months ago
-ldevil -lilut -lilu Put these on the linker to correct the : [linker error] undefined reference to `_imp__ilInit@0' or [linker error] undefined reference to `_imp__iluInit@0' don´t forget to install the library first ! on check for updates (for DEVC++) install DevIL... the includes: #include <IL/il.h> #include <IL/ilu.h> #include <IL/ilut.h> //Used for loading the textures Att Tadeu Borges de Abreu Sampaio Tudumanu
Advertisement
Hi

I use DevIL with my OpenGL engine. To do this I simply have the following code

#include <IL\il.h>
#pragma comment(lib, "DevIL.lib")
Or include the library(.lib) file in your project.
Huh, I was about to post a question that's answered by this post. Awesome!
Thanks!
GLUT Setup: -Dev C++ 4.9.9.2GPU: GeForce 7600GT (256mb)CPU: Core 2 Due 1.86RAM: 1Gig

This topic is closed to new replies.

Advertisement