I am getting an inconsistent dll linkage error. I have defined the code as follows:
query.cpp file:
#define INTERNAL 1
...functions...
query.h file:
#ifdef INTERNAL
#define EXPORTS __declspec(dllexport)
#else
#define EXPORTS __declspec(dllimport)
#endif
class EXPORTS CLS
{
...functions...
}
The error is C4273 inconsistent dll linkage and I can't work out how to get rid of it.
Any help would be appreciated.
Thanks,
Dan
query.cpp file:
#define INTERNAL 1
...functions...
query.h file:
#ifdef INTERNAL
#define EXPORTS __declspec(dllexport)
#else
#define EXPORTS __declspec(dllimport)
#endif
class EXPORTS CLS
{
...functions...
}
The error is C4273 inconsistent dll linkage and I can't work out how to get rid of it.
Any help would be appreciated.
Thanks,
Dan