[Liblas-devel] libLAS and VS2010
Mauricio Terneus
mauricio.terneus at certainty3d.com
Mon Jan 10 12:51:52 EST 2011
I had this same problem, I just move my include for liblas before the boost
include and it took care of all the warnings.
-----Original Message-----
From: liblas-devel-bounces at lists.osgeo.org
[mailto:liblas-devel-bounces at lists.osgeo.org] On Behalf Of
esteban70 at libero.it
Sent: Monday, January 10, 2011 12:07 PM
To: liblas-devel at lists.osgeo.org
Subject: Re: Re: [Liblas-devel] libLAS and VS2010
>----Messaggio originale----
>Da: mpg at flaxen.com
>Data: 10/01/2011 17.42
>A: <liblas-devel at lists.osgeo.org>
>Ogg: Re: [Liblas-devel] libLAS and VS2010
>
>> 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.
I'm using VS2010 Professional with cmake-generated .sln and .vcproj files
and
these are the errors when I'm trying to compile a program including libLAS
(#include <liblas/liblas.hpp>).
C:\Develop\install\include\liblas/bounds.hpp(73): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/bounds.hpp(73): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/bounds.hpp(74): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/bounds.hpp(74): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/bounds.hpp(78): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/bounds.hpp(79): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/bounds.hpp(132): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/bounds.hpp(132): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/bounds.hpp(73): error C2589: '(' : illegal
token on right side of '::'
C:\Develop\install\include\liblas/bounds.hpp(173) : see reference to class
template instantiation 'liblas::Range<T>' being compiled
C:\Develop\install\include\liblas/bounds.hpp(73): error C2589: '(' : illegal
token on right side of '::'
C:\Develop\install\include\liblas/bounds.hpp(73): error C2589: '(' : illegal
token on right side of '::'
C:\Develop\install\include\liblas/bounds.hpp(73): error C2059: syntax error
:
'::'
...
C:\Develop\install\include\liblas/index.hpp(196): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/index.hpp(196): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/index.hpp(197): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/index.hpp(197): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/index.hpp(198): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/index.hpp(198): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/index.hpp(229): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/index.hpp(230): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/index.hpp(231): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/index.hpp(232): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/index.hpp(233): warning C4003: not enough
actual parameters for macro 'min'
C:\Develop\install\include\liblas/index.hpp(234): warning C4003: not enough
actual parameters for macro 'max'
C:\Develop\install\include\liblas/index.hpp(196): error C2059: syntax error
:
'('
...
The compilation of the library itself works flawlessy...
Frank
_______________________________________________
Liblas-devel mailing list
Liblas-devel at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/liblas-devel
More information about the Liblas-devel
mailing list