Sign in to follow this  
yasmin_bd

Problem with compiling devil with Visual Studio 2010

Recommended Posts

Hi,

   I am having the following errors while compiling devil with MS Visual Studio 2010 in my windows 7 machine.

 

  In Linker->Additional dependencies , I put the following:DevIL.lib;ILU.lib; ILUT.lib;

  I have added include and lib directories under VC++ directories.
 Then I put the dll files under System32 and SysWOW64 directories.
  I don't under what else can be the linking problem.
 Do I need to do anything else?

 I downloaded the following from the website: DevIL-SDK-x64-1.7.8



 

 

/****************************************************************************************************************************/

Generating Code...

1>main.obj : error LNK2019: unresolved external symbol__imp__ilutGLLoadImage@4 referenced in function "void __cdeclInitTextures(void)" (?InitTextures@@YAXXZ)

1>main.obj : error LNK2019: unresolved external symbol __imp__ilutRenderer@4 referenced in function _main

1>main.obj : error LNK2019: unresolved external symbol __imp__iluInit@0 referenced in function _main

1>main.obj : error LNK2019: unresolved external symbol __imp__ilInit@0 referenced in function _main

1>C:\Users\MYG741\Documents\Visual Studio 2010\Projects\Textures\Debug\Textures.exe : fatal error LNK1120: 4 unresolved
externals

 

1>Build FAILED.

1>1>Time Elapsed 00:00:01.26

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

/********************************************************************************************************************************************/

 



 


      
   



 

Share this post


Link to post
Share on other sites

I tried to figure out error using the following:

 

ILenum Error;

while ((Error = ilGetError()) != IL_NO_ERROR) {

       printf("%d: %s/n", Error, iluErrorString(Error));

}

 

It prints as follows:

 

"1291: invalid extension/n1290: could not open file/n"

 

I placed the image file in right directory. What does the eror mean?


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this