Boost Python, Visual studio does not create DLL
Boost Python, Visual studio does not create DLL
所以我终于设法在Visual Studio中构建了我的boost::p ython项目,没有任何错误,只是为了发现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:blubx64Releasetest.dll
1> test.vcxproj -> P:blubx64Releasetest.pdb (Full PDB)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
所以它看起来不错,但提到的文件夹中没有 DLL。
查看您提供的Visual Studio输出窗口日志,似乎Visual Studio完成了它的工作(至少说它做到了)。
我猜,从P:blubx64Releasetest.dll
驱动器号P:
开头的路径,目标文件夹位于网络共享上。
您可能没有权限:
- 修改此文件夹
-
写
test.dll
- 或两者兼而有之
尝试在"项目设置"中将目标路径修改到您确定可以写入的文件夹,看看是否可以解决您的问题。
如果必须使用网络共享,请阅读此内容
相关文章:
- OpenMP卸载说'fatal error: could not find accel/nvptx-none/mkoffload'
- 使用JsonCpp将数据返回到带有pybind11的python会在python调用中产生Symbol not foun
- OpenCV Android C++ imwrite not found
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- 使用单词"not"作为C ++类的名称会导致VS2019错误
- 错误"Could not find Boost"(缺少:上下文标头)
- 如何修复"error: ‘_1’ was not declared in this scope"?
- Using C++ CryptAPI:CNG Create CSR
- 套接字连接"Operation not permitted"错误,甚至使用升压/平发器根.cpp
- Is !NaN not a NaN?
- 为什么我会" void value not ignored as it ought to be"?
- 错误:(-210:不支持的格式或格式组合)功能'create'中的硬件视频解码器不支持视频源
- 解决"ld: library not found for -ltensorflow_framework.2.3.0"
- 加载与引用 .NET DLL 位于同一文件夹中的引用的 .NET DLL 时"Not found"异常
- Directx 11 - CompileFromFile() is not compiling
- 方法错误"not all control paths return a value"和方法不返回值
- Centos7 g++ "to_string is not in a member of std"
- MinGW在代码块中构建时的ar.exe "could not create temporary file whilst writing archive: no more archived files
- Boost Python, Visual studio does not create DLL
- 在 Mac OSX 中使用 cv::VideoWriter 会产生"WARNING: Could not create empty movie file container."