简体   繁体   中英

'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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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