游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1665|回复: 0

boost的python库到底如何安装阿

[复制链接]

193

主题

870

帖子

903

积分

高级会员

Rank: 4

积分
903
QQ
发表于 2004-11-27 12:49:00 | 显示全部楼层 |阅读模式
--------------------------------------------------------------------------------

我编译了
boost_python.lib
boost_python.dll
boost_python_debug.dll
boost_python_debug.lib
四个文件
拷贝到 Vc7\lib

然后把python_v1.zip压缩包拷贝到 include
boost\python也拷贝到include

但是编译时候仍然
无法解析的外部符号

temp error LNK2019: 无法解析的外部符号 "__declspec(dllimport) bool __cdecl boost::python::handle_exception_impl(class boost::function0<void,class std::allocator<class boost::function_base> >)" (__imp_?handle_exception_impl@python@boost@@YA_NV?$function0@XV?$allocator@Vfunction_base@boost@@@std@@@2@@Z) ,该符号在函数 "bool __cdecl boost::python::handle_exception<void (__cdecl*)(void)>(void (__cdecl*)(void))" (??$handle_exception@P6AXXZ@python@boost@@YA_NP6AXXZ@Z) 中被引用
temp error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl boost::python::from_python(struct _object *,struct boost::python::type<int>)" (__imp_?from_python@python@boost@@YAHPAU_object@@U?$type@H@12@@Z) ,该符号在函数 "public: static struct _object * __cdecl boost::python::caller<int>::call<int>(int (__cdecl*)(int),struct _object *,struct _object *)" (??$call@H@?$caller@H@python@boost@@SAPAU_object@@P6AHH@ZPAU3@1@Z) 中被引用
temp error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall boost::python::detail::function::function(void)" (__imp_??0function@detail@python@boost@@QAE@XZ) ,该符号在函数 "public: __thiscall boost::python::detail::wrapped_function_pointer<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > (__cdecl*)(void)>::wrapped_function_pointer<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > (__cdecl*)(void)>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > (__cdecl*)(void))" (??0?$wrapped_function_pointer@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@P6A?AV12@XZ@detail@python@boost@@QAE@P6A?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ@Z) 中被引用
temp error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall boost::python::module_builder_base::~module_builder_base(void)" (__imp_??1module_builder_base@python@boost@@QAE@XZ) ,该符号在函数 "public: __thiscall boost::python::module_builder::~module_builder(void)" (??1module_builder@python@boost@@QAE@XZ) 中被引用
temp error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall boost::python::module_builder_base::module_builder_base(char const *)" (__imp_??0module_builder_base@python@boost@@QAE@PBD@Z) ,该符号在函数 "public: __thiscall boost::python::module_builder::module_builder(char const *)" (??0module_builder@python@boost@@QAE@PBD@Z) 中被引用
temp error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall boost::python::detail::function::~function(void)" (__imp_??1function@detail@python@boost@@UAE@XZ) ,该符号在函数 "public: virtual __thiscall boost::python::detail::wrapped_function_pointer<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > (__cdecl*)(void)>::~wrapped_function_pointer<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > (__cdecl*)(void)>(void)" (??1?$wrapped_function_pointer@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@P6A?AV12@XZ@detail@python@boost@@UAE@XZ) 中被引用
temp error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall boost::python::module_builder_base::add(class boost::python::detail::function *,char const *)" (__imp_?add@module_builder_base@python@boost@@QAEXPAVfunction@detail@23@PBD@Z) ,该符号在函数 "public: void __thiscall boost::python::module_builder::def<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > (__cdecl*)(void)>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > (__cdecl*)(void),char const *)" (??$def@P6A?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ@module_builder@python@boost@@QAEXP6A?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZPBD@Z) 中被引用
temp error LNK2019: 无法解析的外部符号 "__declspec(dllimport) struct _object * __cdecl boost::python::to_python(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?to_python@python@boost@@YAPAU_object@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) ,该符号在函数 "public: static struct _object * __cdecl boost::python::caller<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >::call(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > (__cdecl*)(void),struct _object *,struct _object *)" (?call@?$caller@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@python@boost@@SAPAU_object@@P6A?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZPAU4@1@Z) 中被引用
temp error LNK2019: 无法解析的外部符号 _main ,该符号在函数 _mainCRTStartup 中被引用
temp fatal error LNK1120: 9 个无法解析的外部命令


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-23 11:56

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表