[Liblas-devel] R: VS2010 linking error

esteban70 at libero.it esteban70 at libero.it
Wed Dec 29 19:36:04 EST 2010


Obviously it was my fault. I installed the incorrect version of boost
(multithreaded, static runtime instead of multithreaded).

Now I'm trying to use liblas. I have included #include <liblas/liblas.hpp> and
compiler reports more than 100 errors.

This is the first:

C:\Program Files\libLAS\include\liblas/guid.hpp(116): error C2470: 'guid' :
looks like a function definition, but there is no parameter list; skipping
apparent body

The error is in "class LAS_DLL guid" in the LAS_DLL definition...

I've included all the paths. Any advice.

Thanks.

Frank

>----Messaggio originale----
>Da: esteban70 at libero.it
>Data: 28/12/2010 18.42
>A: <liblas-devel at lists.osgeo.org>
>Ogg: VS2010 linking error
>
>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.



More information about the Liblas-devel mailing list