为了使用 gnu gsl 库,我使用以下命令安装了它:
须藤 apt-get 安装 libgsl0ldbl
当我编写一个简单的 c++ 代码只是为了检查我是否正确安装它时,g++ 说
致命错误:gsl/gsl_vector.h:没有那个文件或目录
我的代码可以在下面看到:
#include <iostream>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_statistics.h>
using namespace std;
int main()
{
return 0;
}
Run Code Online (Sandbox Code Playgroud)
可能是什么原因?提前致谢。[我正在尝试在 ubuntu 14.04 64 位上运行它]
编辑 我尝试使用以下命令编译它
g++ 测试.cpp