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@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. 
_______________________________________________
Liblas-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/liblas-devel

Reply via email to