How to compile using DevIL Library for textures on C++
-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
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")
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")
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement