#ifndef _GD_CPP_EXPORTS_H_ #define _GD_CPP_EXPORTS_H_ #ifdef GDCPP_DLL // 编译或使用DLL的项目定义GDCPP_DLL #ifdef GDCPP_EXPORTS // 编译DLL的项目定义GDCPP_EXPORTS #define GDCPP_API __declspec(dllexport) #else // 使用DLL的项目 #define GDCPP_API __declspec(dllimport) #ifdef _DEBUG #pragma comment(lib, "GdCppD.lib") #else #pragma comment(lib, "GdCpp.lib") #endif #endif #elif GDCPP_STATIC // 编译成静态库, #define GDCPP_API #ifdef _DEBUG #pragma comment(lib, "GdCppStaticD.lib") #else #pragma comment(lib, "GdCppStatic.lib") #endif #else // 直接使用源码使用 #define GDCPP_API #endif #endif