On Friday, 3 March 2023 at 19:07:14 UTC, WhatMeWorry wrote:
loadFreeImage(`c:\Users\Admin\Downloads\FreeImage3180Win32Win64\FreeImage\Dist\x64\FreeImage.dll`);
is your application build 64 bit too?
I went ahead and tried to reproduce your setup (this worked).
Used FreeImage3180Win32Win64.zip and recent dmd & ldc.
```json
{
"authors": [
"alpha"
],
"copyright": "Copyright © 2023, alpha",
"description": "A minimal D application.",
On Friday, 3 March 2023 at 19:44:17 UTC, ryuukk_ wrote:
What happens if you put the dll next to your executable, does
it find it?
Good idea. I copied the dll into same directory as the executable
and changed loadFreeImage to
immutable FISupport fiLib = loadFreeImage();
And I get the same
What happens if you put the dll next to your executable, does it
find it?
I've tried distilling the problem to its very essence.
I downloaded the FreeImage.dll from
https://freeimage.sourceforge.io/download.html
to the following directory:
where /R c:\ FreeImage.dll
c:\Users\Admin\Downloads\FreeImage3180Win32Win64\FreeImage\Dist\x64\FreeImage.dll
dir