Is there, a perhaps undocumented way to prevent linker from creating IMPLIB
for a DLL or an EXE, despite having __declspec
(dllexport) directives within the source code?
Specifying no /IMPLIB
results in .LIB
created with a default name.
This is important when the declspec directives arrive from 3rd party code which is not under control. This is, for example, the case with boost::serialization
. A possible solution would be a way to "undeclare" a DLL export. DEF file also cannot do it (AFAIK), because it can only add to the export list but not remove from it.