[Liblas-devel] liblas fails to compile on vs2010

Tommy Stehle TStehle at HNTB.com
Thu Sep 2 10:53:51 EDT 2010


The latest pull of liblas does not seem to compile on vs2010 32bit.  The error is in the lasclassification.cpp.  The actual message is below:


lasclassification.cpp(109): error C2668: 'std::bitset<_Bits>::bitset' : ambiguous call to overloaded function
2>          with
2>          [
2>              _Bits=8
2>          ]
2>          C:\Microsoft\mvs10\VC\include\bitset(136): could be 'std::bitset<_Bits>::bitset(_ULonglong)'
2>          with
2>          [
2>              _Bits=8
2>          ]
2>          C:\Microsoft\mvs10\VC\include\bitset(127): or       'std::bitset<_Bits>::bitset(int)'
2>          with
2>          [
2>              _Bits=8
2>          ]
2>          while trying to match the argument list '(unsigned long)'
2>lasclassification.cpp(123): error C2668: 'std::bitset<_Bits>::bitset' : ambiguous call to overloaded function
2>          with
2>          [
2>              _Bits=8
2>          ]
2>          C:\Microsoft\mvs10\VC\include\bitset(136): could be 'std::bitset<_Bits>::bitset(_ULonglong)'
2>          with
2>          [
2>              _Bits=8
2>          ]
2>          C:\Microsoft\mvs10\VC\include\bitset(127): or       'std::bitset<_Bits>::bitset(int)'
2>          with
2>          [
2>              _Bits=8
2>          ]
2>          while trying to match the argument list '(unsigned long)'


If I try to add gdal support I have always got this error in cmake on windows.


CMake Error at CMakeLists.txt:192 (message):

Unable to find OSRSetEquirectangular2 within GDAL library at

D:/sdks/gdal172 d:/sdks/gdal172/gdal_i.lib

I dumped the lib to see if that function is actually there and it is...

Neither error occurs on Linux.

Thanks,
Tommy

Tommy Stehle
Software Engineering Team Leader
The HNTB Companies
715 Kirk Drive
Kansas City, MO 64105
Tel (816) 527-2618
Fax (816) 472-4065
www.hntb.com<http://www.hntb.com>

This e-mail and any files transmitted with it are confidential 
and are intended solely for the use of the individual or entity 
to whom they are addressed. 

If you are NOT the intended recipient or the person responsible for 
delivering the e-mail to the intended recipient, 
be advised that you have received this e-mail in error and that any use, 
dissemination, forwarding, printing or copying this e-mail is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20100902/03c9ddab/attachment.html


More information about the Liblas-devel mailing list