I'm having static linking problems with a library that is set for DLL. I would like to build as static library .a and dll library depending on the setup below.
#ifdef WIN32
#ifdef DLL
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
#else
#define DLLEXPORT //<-- expecting this to take effect when building as static = nothing added
#endif