On Jan 10, 2011, at 11:06 AM, [email protected] wrote: >> ----Messaggio originale---- >> Da: [email protected] >> Data: 10/01/2011 17.42 >> A: <[email protected]> >> 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... >
Macros are evil. Please pull the latest and see if you still have the same problem. I have hopefully resolved this now. Thanks for the report! Howard _______________________________________________ Liblas-devel mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/liblas-devel
