I'm working with an executable/dll combination originally written by someone else. I'm trying to add a variable to be shared between the dll and exe.
In the exe, I'm declaring the variable like this - __declspec( dllimport ) int arc_fail;
It's declared in the .cpp file I'm using it in. When I compile I get error LNK2001: unresolved external symbol "__declspec(dllimport) int arc_fail"
I wrote a small program to test what I'm doing, using the same declaration, and it compiled.