Jump to content
  • Advertisement
Sign in to follow this  
tudumanu

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

This topic is 3656 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

-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

Share this post


Link to post
Share on other sites
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")

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!