DevIL
I decided to try the image library DevIL at http://openil.sourceforge.net/.
I have Dev-C++, and I can't even get a simple program with it to compile.
Here's the program I tried:
#include <cstdlib>
#include <iostream>
#include <IL/il.h>
#include <IL/ilu.h>
#include <IL/ilut.h>
using namespace std;
int main(int argc, char *argv[])
{
ILuint id, Error;
ilInit();
ilGenImages(1, &id);
ilBindImage(id);
ilLoadImage("default1.tga"); // Loads into the current bound image
Error = ilGetError();
system("PAUSE");
return EXIT_SUCCESS;
}
I got the following errors:
[Linker error] undefined reference to `_imp__ilInit'
[Linker error] undefined reference to `_imp__ilGenImages'
[Linker error] undefined reference to `_imp__ilBindImage'
[Linker error] undefined reference to `_imp__ilLoadImage'
[Linker error] undefined reference to `_imp__ilGetError'
By the way, I did link all the libraries in - I still get those errors.
Any ideas?
Mike C.
http://www.coolgroups.com/zoomer/
The order in which the libraries are specified to GCC is important, adjusting the order in which the libraries are passed might solve your problem.
Be prepared for several issues to appear using DevIL with GCC. It'd be good to have someone resume the project and work on a real GCC port for it, I kept getting random crashes and heap corruptions under GCC. It seems as if several others have seen the same thing, the DevIL SF forums are full of similar issues.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement