Active Forums => QB64 Discussion => Topic started by: dzeek on June 08, 2020, 11:15:52 am
Title: Compile Error using DLL
Post by: dzeek on June 08, 2020, 11:15:52 am
I'm getting the following compile error when trying to use a DLL and .h file that was provided to me. I can't seem to figure out what is causing the error. Any help would be appreciated.
Title: Re: Compile Error using DLL
Post by: jack on June 09, 2020, 07:05:44 am
have you tried without the C(++) header and only with the dll?
Title: Re: Compile Error using DLL
Post by: luke on June 09, 2020, 07:18:28 am
"_declspec(dllexport)" is MSVC-specific syntax. QB64 always uses gcc/clang, so just fiddle with that #if on line 6 to use the other version (the __attribute__ one).
Then you can deal with whatever the next error is :)
Title: Re: Compile Error using DLL
Post by: dzeek on June 09, 2020, 08:19:19 am
"_declspec(dllexport)" is MSVC-specific syntax. QB64 always uses gcc/clang, so just fiddle with that #if on line 6 to use the other version (the __attribute__ one).
Then you can deal with whatever the next error is :)