problem creating a 32-bit dll

nezih via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 26 08:28:31 PDT 2014


I use optlink and I use the latest dmd: DMD32 D Compiler v2.066.0
And yes I see underscores in front of the exported symbol names. 
What's the workaround? And I just verified that the 64-bit 
version doesn't have those leading underscores.


On Tuesday, 26 August 2014 at 15:16:12 UTC, Jakob Ovrum wrote:
> On Tuesday, 26 August 2014 at 14:48:05 UTC, nezih wrote:
>> Hi everyone,
>> I am trying to create a 32-bit dll (on windows server 2012 
>> 64-bit) for an odbc driver, but no luck so far.
>
> Are you using DMD32 with OPTLINK? If so, are you sure the first 
> exported symbol doesn't accidentally have a leading underscore 
> in the resulting DLL? I'm not sure in which DMD release this 
> bug was fixed[1], but I've always had to work around it in my 
> own OPTLINK-made DLLs.
>
> [1] https://github.com/DigitalMars/optlink/pull/10



More information about the Digitalmars-d mailing list