Library 에 따른 Link code.
Dev/C, C++ 2011. 6. 13. 10:50
#if defined(_DEBUG)
#if defined(_UNICODE)
#define _LIB_PROJECT_CONFIGURATION "UD"
#else
#define _LIB_PROJECT_CONFIGURATION "D"
#endif // _UNICODE
#else
#if defined(_UNICODE)
#define _LIB_PROJECT_CONFIGURATION "U"
#else
#define _LIB_PROJECT_CONFIGURATION ""
#endif // _UNICODE
#endif // _DEBUG
#pragma comment(lib, "libraryname" _LIB_PROJECT_CONFIGURATION ".lib")
#pragma message("Automatically linking with libraryname" _LIB_PROJECT_CONFIGURATION ".dll")