GenerateExportHeader defines are inconvenient for object libraries only compiled into static libraries
The documentation should be updated to add the static define to the public interface for the static library; consumers of the library also need to know that dllimport
should not be used on Windows. However, when it is known that object libraries are only ever going into static libraries, there should be a way to not set the DEFINE_EXPORT
and DEFINE_IMPORT
values at all making the static define unnecessary.