[Liblas-devel] cannot get tutorial example to compile

Stanley Wong s.wong at kucerainternational.com
Fri Apr 29 18:14:42 EDT 2011


Hi, 

I am a beginner using VC++ Express 2010 on Windows 7. 

I am starting with the C++ Tutorial (http://liblas.org/tutorial/cpp.html) but cannot get it to compile. 
The error is: 

testLibLas1.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall liblas::Header::GetPointRecordsCount(void)const " (?GetPointRecordsCount at Header@liblas@@QBEIXZ) referenced in function _wmain 
1>X:\Vector Edit\Users\stan\prog\c++\testLibLas1\Debug\testLibLas1.exe : fatal error LNK1120: 1 unresolved externals 

I installed liblas through OSGeo4W, and built Boost using what's suggested (run bootstrap.bat then bjam.exe). 
In VC++, I added the following: 
C/C++ > General > additional Include Directories: C:\OSGeo4W\include;C:\Program Files (x86)\boost\boost_1_46_1 
Linker > General > additional library directories: C:\OSGeo4W\lib;C:\Program Files (x86)\boost\boost_1_46_1\stage\lib 
Linker > Input > Additional Dependencies: liblas.lib 

Can anyone suggest what I am missing here? 

Thanks. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20110429/82de002e/attachment.html


More information about the Liblas-devel mailing list