Open benthevining opened 1 year ago
I assume that your target is your own application, isn't it? In this case, make sure that GUIDOExport is not defined.
My target is not defining GUIDOExport
. Using just the minimal CMake file above, you should be able to reproduce this issue.
Compiling with CMake on Windows, with this in the CMakeLists.txt:
It compiles fine but I get a bunch of undefined symbol errors during linking.
If I manually edit the
GUIDOExport.h
file to contain:then the last remaining linker error is a missing symbol from
Msimg32.lib
-- I also needed to manually link my app toMsimg32.lib
.