Bug 19901 – importing export symbols causes link errors

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2019-05-25T08:46:03Z
Last change time
2019-05-25T11:46:00Z
Keywords
pull
Assigned to
No Owner
Creator
Rainer Schuetze

Comments

Comment #0 by r.sagitario — 2019-05-25T08:46:03Z
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
Comment #1 by dlang-bot — 2019-05-25T08:54:01Z
@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
Comment #2 by dlang-bot — 2019-05-25T11:46:00Z
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