[Liblas-devel] libLAS and VS2010

esteban70 at libero.it esteban70 at libero.it
Mon Jan 10 12:06:33 EST 2011


>----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


More information about the Liblas-devel mailing list