无法打开库蟒蛇.熊猫计划3D.与
Unable to open lib python. Project Panda3D. VS
我刚刚用Panda3D开始了一个c++项目。( Visual Studio 2010 )
通过一个简单的HelloWorld,我添加了路径等。 没有编译错误,除了:
刚刚出现一个错误:
error LNK1104: cannot open file 'python27_d.lib'
而且我不知道如何解决它。
请帮忙 !
谢谢!
你可以做一些事情。
1)只是在发布模式下构建(不是一个好的解决方案,因为你不能用这种方式调试得太好)
2) 添加另一个基于"发布"的构建配置,但带有调试符号并且没有_DEBUG
预处理器定义(可能会弄乱一些库)
3) 查找或构建一个 Python 2.7 版本,其中包含在 Visual Studio 2010 中构建的调试和发布库
4) 只需更改pyconfig.h
中实际链接到 *.lib 文件的这一部分,即可将python27.lib
用于两种配置。
/* For an MSVC DLL, we can nominate the .lib files used by extensions */
#ifdef MS_COREDLL
# ifndef Py_BUILD_CORE /* not building the core - must be an ext */
# if defined(_MSC_VER)
/* So MSVC users need not specify the .lib file in
their Makefile (other compilers are generally
taken care of by distutils.) */
# ifdef _DEBUG
# //-----------------------change the next line-------------//
# pragma comment(lib,"python27_d.lib")
# else
# pragma comment(lib,"python27.lib")
# endif /* _DEBUG */
# endif /* _MSC_VER */
# endif /* Py_BUILD_CORE */
#endif /* MS_COREDLL */
1)2)和4)是黑客解决方案,所以我建议你尝试使用3)。
相关文章:
- 如何让C++'tally up'结果并制定计划?
- C++窗口的计划问题
- 回复计划游戏结果不会显示
- 我正在努力处理多维数组输入和输出,我管理输入,但是打印无法按计划工作
- 如何从文本文件输出数据?(学生成绩单计划)
- 为什么在此计划中,我在所有情况下都获得 0%?
- Windows 并发运行时任务计划,但有例外
- C++航班预订计划
- 如何计划在将来时间运行的操作
- 自动(toCast)显式转换是否计划在未来C++标准?
- 任务计划程序库的预处理不起作用 - 多定义错误
- GLES计划资源索引/位置与统一索引/位置
- 我应该如何使用C++创建 Google 行动行动计划履行端点?
- 多米诺骨牌计划。我不知道如何将我的矢量拉到空白中以打印出来
- C++计划持续时间内(字体)资源的分配
- 是否有任何计划将"expects"添加到 std::optional?
- 我可以在计算数据计划上修复该C 程序的任何建议吗?
- 任务计划程序:设置运行级别时拒绝访问
- 基本C++计划提前结束
- 无法打开库蟒蛇.熊猫计划3D.与