Loading assimp

Guillaume Piolat first.name at notexisting.com
Wed Sep 29 12:11:16 UTC 2021


On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote:
> I am trying to use a newer version of Assimp.
> I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to 
> assimp.dll
>
> When running my executable it throws a 
> derelict.util.exception.SharedLibLoadException:
>
> "Failed to load one or more shared libraries:
>         assimp.dll - %1 is not a valid Win32 application.
>         Assimp64.dll - The specified module could not be found"
>
> Any idea what's going on? Are 64bit dlls not supported?

If using dub you can build your D programs with
   dub -a x86 for a 32-bit executable
   dub -a x86_64 for a 64-bit executable (which is also the 
default thankfully).

Your problem is very probably trying to load a 32-bit DLL into a 
64 host program.


More information about the Digitalmars-d-learn mailing list