DIP45: fixing the dllimport/dllexport issue

Martin Nowak code at dawg.eu
Mon Sep 9 20:44:05 PDT 2013


On 09/07/2013 02:47 PM, Benjamin Thaut wrote:
> If you compile lib1 into a static library and then copmpile lib2 into a
> DLL which statically links against lib1 both symbols lib1Func and
> lib2Func will be exported from the dll
That might indeed cause some issues, but when you make lib1 part of your 
DLL by statically linking against it that's what you get.
If you just want to use it, you should make lib1 a DLL as well, which 
also avoids ODR problems.
Also could a .DEF file control which symbols are reexported?


More information about the Digitalmars-d mailing list