I get some warnings that I have inconsistent DLL associations, even though I classify my dll header as follows:
#ifdef MY_ENGINE_EXPORTS #define ENGINE __declspec(dllexport) #else #define ENGINE __declspec(dllimport) #endif
It works great to get rid of errors when I add MY_ENGINE_EXPORTS to the preprocessor definitions, but I got the impression that it needs to be done automatically during assembly / export. I'm not wrong? I included the underscore because the project consists of two words, for example, "my engine". I tried this as MY_ENGINE_EXPORTS and MYENGINE_EXPORTS, but none of them work.
As I said, I can simply add it to the preprocessor definitions, but it overhears me why it doesn't behave as it should.
source share