[Liblas-devel] Problem linking a simple main with OSGEO LIBLAS library [VC9-Release]

Otmane Lahlou otmane.lahlou at c-s.fr
Wed Nov 17 11:40:31 EST 2010


Hi List;

I have problem linking a simple executable with the liblas library 
liblas_c.lib
provided in OSGEO4W.

I got the following erros when compiling in Visual Studio 2008:

2>testLIBLAS.obj : error LNK2019: symbole externe non résolu "public: 
__thiscall liblas::Reader::~Reader(void)" (??1Reader at liblas@@QAE at XZ) 
référencé dans la fonction _main
2>testLIBLAS.obj : error LNK2019: symbole externe non résolu "public: 
__thiscall liblas::Reader::Reader(class std::basic_istream<char,struct 
std::char_traits<char> > &)" 
(??0Reader at liblas@@QAE at AAV?$basic_istream at DU?$char_traits at D@std@@@std@@@Z) 
référencé dans la fonction _main
2>testLIBLAS.obj : error LNK2019: symbole externe non résolu "public: 
double __thiscall liblas::Point::GetZ(void)const " 
(?GetZ at Point@liblas@@QBENXZ) référencé dans la fonction "public: bool 
__thiscall liblas::Bounds<double>::contains(class liblas::Point const 
&)const " (?contains@?$Bounds at N@liblas@@QBE_NABVPoint at 2@@Z)
2>testLIBLAS.obj : error LNK2019: symbole externe non résolu "public: 
double __thiscall liblas::Point::GetY(void)const " 
(?GetY at Point@liblas@@QBENXZ) référencé dans la fonction "public: bool 
__thiscall liblas::Bounds<double>::contains(class liblas::Point const 
&)const " (?contains@?$Bounds at N@liblas@@QBE_NABVPoint at 2@@Z)
2>testLIBLAS.obj : error LNK2019: symbole externe non résolu "public: 
double __thiscall liblas::Point::GetX(void)const " 
(?GetX at Point@liblas@@QBENXZ) référencé dans la fonction "public: bool 
__thiscall liblas::Bounds<double>::contains(class liblas::Point const 
&)const " (?contains@?$Bounds at N@liblas@@QBE_NABVPoint at 2@@Z)
.....
....

When I browse the symbols with DependencyWalker, i can find all the 
symbols not found..
Am I missing something

I tried to link with the liblas.lib, but  it asks me for  
boost-serialization libs

I upload a cmake project here to show the problem here :  
http://dl.free.fr/feHYcXrkh
One need to provide GDAL, TIFF and GeoTIFF libraries and include dirs
and Boost header as well.

If someone can have a look, It will be great.

Thanks

Otmane


More information about the Liblas-devel mailing list