FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Issue with DevIl and .dll

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
ste3e



Joined: 08 Apr 2012
Posts: 17
Location: New Zealand

PostPosted: Fri Apr 27, 2012 8:37 pm    Post subject: Issue with DevIl and .dll Reply with quote

When I try to compile my GL3/SDL2 program while also trying to load DevIl I get the following compiler error:


libderelict.util.exception.SymbolLoadException@..\import\derelict\util\exception.d(38): Failed to load symbol ilDeleteImage from shared library devil.dll
----------------
4387DC
438653
41AE3C
41AE7B
41AA8B
449181


The code for loading DevIl is:

Code:
import derelict.devil.il;
.
.
.
pragma(lib, "DerelictIL.lib");
.
.
.
try{
        DerelictIL.load();
    }catch(Exception e){
        writeln("Error loading Image lib", e);
      return false;
    }


Given the loading sequence is the same as for GL3 and SDL2, and both of these play happy, I don't think the problem lies there... although I can find no documentation that gives the exact syntax for loading Devil in Derelict3. Anyway, the compiler error references the c .dll file. The c .dll file I am using is the 1.7.8 .dll downloaded from the main DevIl site. Do we need a specific version of the .dll?
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Fri Apr 27, 2012 11:15 pm    Post subject: Reply with quote

This is not a compiler error. It's a runtime error.

The loader is unable to find the function 'ilDeleteImage' in your DevIL DLL. If you check the DevIL changelog, you'll see that function was added in DevIL 1.68 RC2. The most likely problem is that you are using an older version of DevIL.

The best solution is to make sure you have the latest version of DevIL.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
ste3e



Joined: 08 Apr 2012
Posts: 17
Location: New Zealand

PostPosted: Sun Apr 29, 2012 4:55 pm    Post subject: Reply with quote

Thanks aldacron. I ended up re-installing XP and placing the DevIl dll downloaded from the DevIl site in the same folder as the project's .exe. Must have been a rogue DevIl dll lurking in some forgotten folder.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group