error : liblas/version.hpp : no such file or directory

1.4k Views Asked by At

I want to use liblas to treat some data so I installed the library on my ubuntu 13.04 at /usr/share/include , the automatic path.

I have also a project on code::blocks to use this library.

here is an extract of the main program :

#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;
}

When I want to compile it, I got the error "liblas/version.hpp : no such file or directory" Code::Blocks opens liblas.hpp and shows the error : $#include liblas/version.hpp$

(under <>)

but in fact, there is in the same folder as liblas.hpp a file called version.hpp

What's wrong?

0

There are 0 best solutions below