[Liblas-devel] libLAS and VS2010

Michael P. Gerlek mpg at flaxen.com
Mon Jan 10 11:42:39 EST 2011


>> Another problem is that libLAS doesn't compile in presence of min() and max()
>> macros. Now that libLAS depends on boost maybe it can adopt the boost
>> guidelines to avoid inappropriate macro substitution (http://www.boost.
>> org/development/requirements.html). I had to insert a lot of () and
>> BOOST_PREVENT_MACRO_SUBSTITUTION to make it compile.
>
> Can you provide some example compiler warning/error output about this?  I haven't ever had any complaint about this using MSVC 2010 express, however, I only use the Makefiles target, not the project build.  Are the macros coming from libLAS or one of its dependencies?

I'd be interested too, if you can provide some more details -- I build 
with VS2010 ("Premium") from the cmake-generated .sln and .vcproj files, 
and I've not had any problems.

-mpg


More information about the Liblas-devel mailing list