[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 621
  • Last Modified:

gltest.obj : error LNK2001: unresolved external symbol __imp__ilLoadImage@4

Hi All!!

I installed a library called DevIL that is intended to manage images.

I configured MSVC++ with the following settings:
1. project->c++ settings->category: Code Generation
2. project->c++ settigns->use runtime library: Multithreaded DLL

I am sure that the code is correct because it's the working example the guys give us to try (this code gives me exactly the same error as my application).
Something is wrong because it doesn't link:

Compiling...
gltest.c
Linking...
gltest.obj : error LNK2001: unresolved external symbol __imp__ilLoadImage@4
gltest.obj : error LNK2001: unresolved external symbol __imp__ilBindImage@4
gltest.obj : error LNK2001: unresolved external symbol __imp__ilGenImages@8
gltest.obj : error LNK2001: unresolved external symbol __imp__ilutEnable@4
gltest.obj : error LNK2001: unresolved external symbol __imp__ilEnable@4
gltest.obj : error LNK2001: unresolved external symbol __imp__ilInit@0
gltest.obj : error LNK2001: unresolved external symbol __imp__ilGetInteger@4
gltest.obj : error LNK2001: unresolved external symbol __imp__ilDeleteImages@8
gltest.obj : error LNK2001: unresolved external symbol __imp__ilutGLBindTexImage@0
gltest.obj : error LNK2001: unresolved external symbol __imp__ilutRenderer@4
Debug/test.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

test.exe - 11 error(s), 0 warning(s)

Thanks!
0
joao_ye
Asked:
joao_ye
1 Solution
 
Kent OlsenData Warehouse Architect / DBACommented:

Hi joao_ye,


This is a C++ Builderer forum.  You might want to post your question in the C++ forum.

http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/


On the other hand, it looks like the DevIL library isn't configured into the IDE.

Kent
0
 
CayceCommented:
I believe you are missing a library in the project.

Download the SDK from sourceforge. Add the .LIB files you can find in the lib folder into your project. That should get rid of the linker error.

Also, it's better to use the include path found on the SDK than in the full library source code.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now