Gnuplot & C++:在 PATH 和"
Gnuplot & C++: Can't find gnuplot neither in PATH nor in "
我试图在Windows上使用Gnuplot与gnuplot_i.hpp。当我在cmd中输入"gnuplot"时,一切正常,因此PATH变量应该设置正确。这是我的代码:
#include <iostream>
#include "gnuplot_i.hpp"
using std::cout;
using std::endl;
int main(int argc, char* argv[]) {
try {
Gnuplot g1("lines");
} catch (GnuplotException ge) {
cout << ge.what() << endl;
}
return 0;
}
输出是Can't find gnuplot neither in PATH或in" C:/program files/gnuplot/bin"。
当我添加
Gnuplot::set_GNUPlotPath("C:/gnuplot/bin/");
它只是改变为Can't find gnuplot neither in PATH or in "
我在这里做错了什么?
我自己找到了答案:出于某种原因,gnuplot_i.hpp希望您的exe被称为pgnuplot_exe而不是gnuplot_exe…
相关文章:
- 在 Windows 上,是否可以让 dll 在不使用 PATH 环境变量的情况下在另一个文件夹中查找依赖项?
- 如何强制嵌入式python使用与命令行相同的sys.path?
- [LLVM-9 clang-9 OSX]: std::filesystem::path unrecognized
- 我可以对"int 文件 = open(path, flag);"做点什么吗?
- "#include <path/to/header>"指令的含义(如"#include <loki/Functor.h>")
- Cppcheck 静态代码分析器实际上可以检测到不太常见的警告(如 "Relative Path Traversal (CWE-23)" 或"Buffer Under-read(CWE-127)")吗
- 如何处理异步函数中的异常UWP应用程序getFileFrompathAsync(path);
- 使用std :: filesystem :: path中的double
- 使用谷歌测试编译程序时"g++ is not a full path"
- c++ std::bad_alloc on std::filesystem::path append
- CodeLite opencv path
- 安装 gRPC : ld: 警告: 找不到选项 '-L/<path>/grpc/libs/opt/c-ares' 的目录
- 构建 vcxproj 文件给我一个无信息的错误"The system cannot find the path specified"
- 如何将 g++ 从 MinGW 添加到 PATH
- 如何从 C++ 中的系统 PATH 获取绝对文件路径
- Orocos LTTng 符号查找错误:/path/to/liborocos-rtt-traces-gnulinux.s
- 更改狭窄的字符串编码或丢失std :: filesystem :: path :: imbue
- 如果P从root路径开始,为什么STD :: filesystem :: path :: append替换当前路径
- 错误:无法通过'...'传递非平凡可复制类型的对象'class boost::filesystem::path'
- C++:std::ifstream ifs(path),"path 应该是常量"