简体   繁体   English

找不到'boost / iostreams / device / file_descriptor.hpp'文件错误

[英]'boost/iostreams/device/file_descriptor.hpp' file not found ERROR

I'm trying to call gnuplot from C++ and I've included the gnuplot-iostream.h library and the boost/iostreams/device/file_descriptor.hpp library in the same directory as my source code, but I still get the error that the directory is not found. 我正在尝试从C ++调用gnuplot,并且将gnuplot-iostream.h库和boost / iostreams / device / file_descriptor.hpp库包含在与源代码相同的目录中,但是仍然收到错误消息找不到目录。 What am I doing wrong? 我究竟做错了什么?

Are you using the correct include delimiters? 您使用的是正确的包含分隔符吗?

#include <boost/iostreams/device/file_descriptor.hpp>

will search the specified library search paths (including the compiler implicits). 将搜索指定的库搜索路径(包括编译器隐式)。

#include "boost/iostreams/device/file_descriptor.hpp"

will search relative to the current translation unit too. 也会相对于当前翻译单位进行搜索。


If this was the cause, you could 如果这是原因,您可以

  • change the delimiter style (recommended) 更改定界符样式(推荐)
  • add "." 添加“。” to the library include paths 到图书馆包括路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM