[Liblas-devel] VS2010 linking error

esteban70 at libero.it esteban70 at libero.it
Tue Dec 28 12:42:45 EST 2010


I'm trying to compile libLAS-1.6.0b3 using VS2010.
I have installed CMake 2.8.3 and boost libraries using the installer from 
boostpro (1.44 multithreaded, static runtime).
CMake detects boost without any problem and generates the VS2010 project.

Compiling the liblas project I'm getting the following linking errors:

libboost_program_options-vc100-mt-s-1_44.lib(parsers.obj) : error LNK2038: 
mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value 
'2' in indexcell.obj
...
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __int64 __thiscall std::
ios_base::width(__int64)" (?width at ios_base@std@@QAE_J_J at Z) already defined in 
libboost_program_options-vc100-mt-s-1_44.lib(options_description.obj)
...
LINK : fatal error LNK1104: cannot open file 'libboost_serialization-vc100-mt-
gd-1_44.lib'

The project Code Generation->Runtime Library is automatically set to Multi-
threaded Debug DLL as default.

Thanks.

Frank


More information about the Liblas-devel mailing list