Language/Python

VC++에 Python을 Embedding시, Debug 컴파일 에러 잡기

lepoussin 2007. 2. 6. 18:49

#   ifdef _DEBUG
#    pragma comment(lib,"python24.lib") <-- 수정
#   else
#    pragma comment(lib,"python24.lib")
#   endif /* _DEBUG */

그리고 다음 부분을 주석으로 처리하면 된다.

//#ifdef _DEBUG
//# define Py_DEBUG
//#endif