Python을 설치 하면 VC++용 python27.lib 은 있는데 MinGW 버전은 없다.
아래와 같이 변환하여 사용한다.
$ gendef /c/Windows/System32/python27.dll
$ dlltool -v --dllname /c/Windows/System32/python27.dll --def python27.def --output-lib libpython27.a
Python을 설치 하면 VC++용 python27.lib 은 있는데 MinGW 버전은 없다.
아래와 같이 변환하여 사용한다.
$ gendef /c/Windows/System32/python27.dll
$ dlltool -v --dllname /c/Windows/System32/python27.dll --def python27.def --output-lib libpython27.a