1

I'm using the source code in this article.

I've simply copy and pasted the source to my own project, and Dev-C++ is finding all of the includes; however, when I compile I receive a slew of "linker errors" such as the following:

[Linker error] undefined reference to _imp__ilGenImages@8

Have I set up my environment improperly somehow? How do I fix it?

genpfault
  • 51,148
  • 11
  • 85
  • 139
Jamie
  • 1,607
  • 3
  • 17
  • 25

4 Answers4

0

Have you linked your application against the lib-files included with Devil?

Andreas Brinck
  • 51,293
  • 14
  • 84
  • 114
0

Have you added devil.libto your linker dependencies?

André Caron
  • 44,541
  • 12
  • 67
  • 125
0

You probably forgot to link against the static libraries. Read the manual of your compiler to find out how to do that in your case.

  • I've added DevIL, ILU, and ILUT.lib to my Linker and I still seem to be getting the same errors. Odd... – Jamie Nov 17 '10 at 18:45
0

Dev-Cpp uses GNU compiler. It could not understand .lib files. If you still wanna use DevIL, you should build it from sources (avaliable from their site ; needs some dependices too), use Visual Studio (which is more painless way) or use another library (SDL_image, SFML would be good enough).

shybovycha
  • 11,556
  • 6
  • 52
  • 82