[llvm-dev] Disabling inline compilation (Clang with VS2019)

John Emmas via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 22 05:50:10 PDT 2021


On 22/09/2021 13:33, Dimitry Andric wrote:
> .
> As far as I understand it, if you specify __declspec(dllexport) for a whole class, then *all* members, including statics, get explicitly exported in the DLL image.
>
> I.e. it is as if you had manually specified __declspec(dllexport) to each and every member.
>

Thanks Dimitry - but why would that cause a problem? ''_the_keyboard" 
should never be needed by the exe - so why would the linker complain 
that it can't find something which it doesn't need anyway?

John


More information about the llvm-dev mailing list