View previous topic :: View next topic |
Author |
Message |
ste3e
Joined: 08 Apr 2012 Posts: 17 Location: New Zealand
|
Posted: Fri Apr 27, 2012 8:37 pm Post subject: Issue with DevIl and .dll |
|
|
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 |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Fri Apr 27, 2012 11:15 pm Post subject: |
|
|
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 |
|
|
ste3e
Joined: 08 Apr 2012 Posts: 17 Location: New Zealand
|
Posted: Sun Apr 29, 2012 4:55 pm Post subject: |
|
|
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 |
|
|
|