[Issue 19901] New: importing export symbols causes link errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 25 08:46:03 UTC 2019


          Issue ID: 19901
           Summary: importing export symbols causes link errors
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

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.
 Error 42: Symbol Undefined _D5mydll8dllprintFZv
Error: linker exited with status 1


More information about the Digitalmars-d-bugs mailing list