Strange stack variable corruption error after calling extern(C) function
cc via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 4 10:53:32 PDT 2016
On Wednesday, 4 May 2016 at 09:40:55 UTC, Benjamin Thaut wrote:
> On Tuesday, 3 May 2016 at 19:06:30 UTC, cc wrote:
>>
>> it fails to link with "Error 42: Symbol Undefined
>> _FMOD_System_CreateSound at 20". With extern(C) it compiles and
>> runs but the problem from above persists.
>
> Is this on Windows x64? Try replacing FMOD_RESULT by int. When
> declaring the fmod create sound function and see if that helps.
The OS is Win64 though the program is being compiled as 32-bit
and I'm using the 32-bit distributed DLL.
fmod.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows
Tried int and long as the return type, same issue both ways.
Tried void too just in case, same thing though.
More information about the Digitalmars-d-learn
mailing list