On Windows, x86.
http://dl.dropbox.com/u/9218759/DLL_Imports.zip
fail_build.bat runs:
dmd driver.d mydll.lib -I%cd%\include\
but linking fails:
driver.obj(driver)
Error 42: Symbol Undefined _D5mydll12__ModuleInfoZ
--- errorlevel 1
work_build.bat runs:
dmd driver.d mydll.lib
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?
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
Actually passing that .di file compiles it in statically, and the exe
ends up not needing the DLL.
It's a bit too late for me to thinker with the linker, I'll have a
clearer head tomorrow.
My commands to compile were:
dmd -ofmydll.dll mydll.d
dmd -o- -Hdinclude mydll.d
dmd driver.d mydll.lib -I%cd%\include
On 3/12/2011 7:02 PM, Andrej Mitrovic wrote:
My commands to compile were:
dmd -ofmydll.dll mydll.d
dmd -o- -Hdinclude mydll.d
dmd driver.d mydll.lib -I%cd%\include
Thanks.
I've tried several things, but can't get the _D5mydll12__ModuleInfoZ
symbol to show up at all. The behavior is the same
On 3/12/2011 11:39 PM, Bekenn wrote:
On 3/12/2011 7:02 PM, Andrej Mitrovic wrote:
My commands to compile were:
dmd -ofmydll.dll mydll.d
dmd -o- -Hdinclude mydll.d
dmd driver.d mydll.lib -I%cd%\include
Thanks.
I've tried several things, but can't get the _D5mydll12__ModuleInfoZ
symbol to show