I have a debug dll library which I try and export and array like so:
debuglib.h
#define MAX_DEBUG_EVENT_COUNT_PER_FRAME 65533
__declspec(dllexport) DebugEvent currentFrameDebugEventArray[MAX_DEBUG_EVENT_COUNT_PER_FRAME];
The library builds fine but then when I try to import that array into another dll that needs to use that array:
__declspec(dllimport) DebugEvent currentFrameDebugEventArray[MAX_DEBUG_EVENT_COUNT_PER_FRAME];
I get this error/warning message:
" warning C4273: 'currentFrameDebugEventArray': inconsistent dll linkage"
Am I using the dllexport/dllimport declarations incorrectly?