我正在尝试从C++调用 gnuplot,并且我已经将 gnuplot-iostream.h 库和 boost/iostreams/device/file_descriptor.hpp 库包含在与我的源代码相同的目录中,但我仍然收到找不到该目录的错误。我做错了什么?
您是否使用了正确的包含分隔符?
#include <boost/iostreams/device/file_descriptor.hpp>
将搜索指定的库搜索路径(包括编译器隐式)。
#include "boost/iostreams/device/file_descriptor.hpp"
也将相对于当前翻译单元进行搜索。
如果这是原因,您可以
- 更改分隔符样式(推荐)
- 将"."添加到库包含路径