Windows static linking question

frame frame86 at live.com
Tue Apr 27 10:43:20 UTC 2021


On Tuesday, 27 April 2021 at 08:50:37 UTC, Mike Parker wrote:

> What specifically are the linker errors? Is it referring to 
> `_DLLMainCRTStartup` or something else?

Various "unresolved external symbol", mostly
```..._ClassZ```,
```...__ModuleInfoZ```,
```..._initZ``` from my classes and functions
but also ```_D3std5regex__T8CapturesTAyaZQo6__initZ```

> Also, I suspect the reason you're getting the renaming errors 
> with rdmd is because you're passing both `-L/OUT:common.dll` 
> and `-of=common.dll`.

No, it's caused by ```-L/OUT``` only. ```-of``` is redudant here 
indeed, but doesn't change anything.




More information about the Digitalmars-d-learn mailing list