[GD-Windows] declspec?
Brought to you by:
vexxed72
From: Brett B. <res...@ga...> - 2005-01-07 01:08:52
|
Can someone explain to me when and how to use the __declspec(dllimport) and __declspec(dllexport) specifiers? We have a few libraries that are statically linked to the game. In CodeWarrior this has always worked. We tried to build a MSVC project and the linker complains. Only when we put __declspec(dllexport) in the class declarations will it compile. I checked the MSDN doc and it's not very clear what's needed for static libraries. This must be a basic thing I guess, but I have always used CodeWariror and never seen this kind of problem. Cheers, -bb |