Trying to create a trivial 64 bit D Lang DLL on a Windows 10 machine and cant get past linking.

WhatMeWorry kheaser at gmail.com
Thu Oct 1 20:03:19 UTC 2020


On Thursday, 1 October 2020 at 09:22:29 UTC, user1234 wrote:
> On Wednesday, 30 September 2020 at 11:45:53 UTC, Ferhat 
> Kurtulmuş wrote:
>> On Tuesday, 29 September 2020 at 21:22:21 UTC, WhatMeWorry 
>> wrote:
>>> module user;
>>>
>>> export { int myAddSeven(int a, int b); }
>>>
>>> [...]
>>
>> it is better to use this template 
>> https://github.com/dlang/dmd/tree/master/samples/mydll
>>
>> You don't have a DllMain.
>
> yeah that's the problem, check [0] OP. The author makes 
> commercial dll on windows so he knows what he speaks about
>
> [0] 
> https://forum.dlang.org/post/mscgsclxwtjcferfxoet@forum.dlang.org

Yes, but shouldn't the /NOENTRY option take care of that. Say, I 
just want to make a DLL of simple functions.



More information about the Digitalmars-d-learn mailing list