所以我终于设法在Visual Studio中构建我的boost :: python项目而没有任何错误,只是为了找出Visual Studio不为我创建DLL。我使用了大多数教程中的示例(以某种形式):
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
char const* greet()
{
return "hello, world";
}
BOOST_PYTHON_MODULE(myFirstModule)
{
using namespace boost::python;
def("greet", greet);
}
Visual Studio的输出显示:
1> Finished generating code
1> test.vcxproj -> P:\blub\x64\Release\test.dll
1> test.vcxproj -> P:\blub\x64\Release\test.pdb (Full PDB)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
所以它看起来很好,但在提到的文件夹中没有DLL。
答案 0 :(得分:1)
查看您提供的Visual Studio 输出窗口日志,似乎Visual Studio完成了其中的一部分工作(至少说它确实如此)。
我想,从驱动器号P:\blub\x64\Release\test.dll
开头的路径P:\
,目标文件夹位于网络共享上。
您可能没有权限:
test.dll
尝试在项目设置中修改目标路径,确定您可以写入的文件夹,看看是否能解决您的问题。
如果您必须使用网络共享,read this