How to build dll?

Ferhat Kurtulmuş aferust at gmail.com
Wed Dec 2 20:37:49 UTC 2020


On Wednesday, 2 December 2020 at 20:08:29 UTC, Jack wrote:
> On Wednesday, 2 December 2020 at 19:42:37 UTC, Jack wrote:
>> D code:
>>
>>>[...]
>>
>> compiled with:
>>> [...]
>>
>> called from:
>>
>>>    [...]
>>
>>
>> but hinstLib is NULL and GetLastError() = 193:
>>
>>> [...]
>>
>> What am I missing?
>
> for same reason, the dll build with ldc2 works fine, compiled 
> with:
>
>>ldc2 -shared dll.d -ofmydll.dll
>
> what am I missing?

Just out of curiosity, are you sure that you compile both your c 
and d codes for the same arc?


More information about the Digitalmars-d-learn mailing list