C++ 错误:liblas/version.hpp:没有这样的文件或目录

C++ 错误:liblas/version.hpp:没有这样的文件或目录,c++,compiler-errors,liblas,C++,Compiler Errors,Liblas,我想用liblas来处理一些数据,所以我在ubuntu 13.04的自动路径/usr/share/include上安装了这个库 我还有一个关于code::blocks的项目来使用这个库 以下是主程序的摘录: #include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <sstream> #include <liblas.h

我想用liblas来处理一些数据,所以我在ubuntu 13.04的自动路径/usr/share/include上安装了这个库

我还有一个关于code::blocks的项目来使用这个库

以下是主程序的摘录:

#include <iostream>
#include <string>
#include <fstream>
#include <cstdlib>
#include <sstream>
#include <liblas.hpp>

using namespace std;
int main()
{
        std::ifstream ifs;
        ifs.open("myfile.LAS", std::ios::in | std::ios::binary);
        liblas::ReaderFactory f;
        liblas::Reader reader = f.CreateWithStream(ifs);
        liblas::Header const& header = reader.GetHeader();
        std::cout << "Compressed: " << (header.Compressed() == true) ? "true":"false";
        std::cout << "Signature: " << header.GetFileSignature() << '\n';
        std::cout << "Points count: " << header.GetPointRecordsCount() << '\n';
        return 0;
}
当我想要编译它时,我得到了错误liblas/version.hpp:没有这样的文件或目录 代码::阻止打开liblas.hpp并显示错误: $include liblas/version.hpp$

但事实上,在liblas.hpp的同一文件夹中有一个名为version.hpp的文件


怎么了?

包括谢谢。执行了,并且出现了相同的错误。我将再次检查安装指南。好的,我可能在安装时弄错了。但首先,我试图通过Code::Blocks将库的所有部分链接到我的项目。我的第一篇文章很好:我添加了version.hpp,所以它需要另一个文件。也许我应该找到如何链接文件夹。我重新链接得更正确,我的新错误是:未定义对“liblas::ReaderFactory::CreateWithStreamstd::istream&”和其他同类的引用