Tag: libspotify

在Windows中使用C绑定构建Python包(VC90)会导致LNK1181致命错误

我正在尝试构建一个绑定到C库(libspotify)的Python包(pyspotify)。 我正在使用Python 2.7.5并为某些必需的命令行工具安装了VS2008 Express。 当我从命令提示符(具有管理员权限)调用python setup.py build ,我得到以下输出: running build running build_py running build_ext building ‘spotify._spotify’ extension 然后~18个,一个包中的每个.c文件: c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isrc -Ic:\Python\Python27\include -Ic:\Python\Python27\PC /Tcsrc\module.c /Fobuild\temp.win32-2.7\Release\src\module.obj module.c 然后是showstopper: c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\Python\Python27\libs /LIBPATH:c:\Python\Python27\PCb uild spotify.lib /EXPORT:init_spotify build\temp.win32-2.7\Release\src\module.ob j build\temp.win32-2.7\Release\src\session.obj […]