Building the mydll example in dmd\samples\mydll results in a link error: >dmd -m32 -ofmydll.dll -L/IMPLIB mydll\mydll.d mydll\dll.d mydll\mydll.def >dmd -m32 -ofdlltest.exe mydll\test.d mydll\mydll.di mydll.lib OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html dlltest.obj(dlltest) Error 42: Symbol Undefined _D5mydll8dllprintFZv Error: linker exited with status 1
@rainers created dlang/dmd pull request #9885 "fix issue 19901 - importing export symbols causes link errors (Win32)" fixing this issue: - fix issue 19901 - importing export symbols causes link errors (Win32) build and run the mydll example also for -m64 and -m32mscoff https://github.com/dlang/dmd/pull/9885
dlang/dmd pull request #9885 "fix issue 19901 - importing export symbols causes link errors (Win32)" was merged into stable: - d16d4c5ecf92fb52eee28cb8ab2c4d1b9f1544b0 by Rainer Schuetze: fix issue 19901 - importing export symbols causes link errors (Win32) build and run the mydll example also for -m64 and -m32mscoff https://github.com/dlang/dmd/pull/9885