.di header imports with DLL symbols fails to link

Daniel Green venix1 at gmail.com
Sat Mar 12 18:51:55 PST 2011


On 3/12/2011 9:15 PM, Bekenn wrote:
> On 3/12/2011 5:24 PM, Andrej Mitrovic wrote:
>> driver.obj(driver)
>> Error 42: Symbol Undefined _D5mydll12__ModuleInfoZ
>> --- errorlevel 1
>
> Your dll is exporting a different symbol: _D5mydll3fooFiZi
> Do you have the .def file and the command line used to build the DLL?
I believe _D5mydll12__ModuleInfoZ is supposed to be exported by the 
compiler.

It contains static constructor and unittest information used by the 
runtime to initialize it.


More information about the Digitalmars-d-learn mailing list