[pdal] Compiling with Visual Studio 2015

Kristian Evers kreve at sdfe.dk
Tue Jan 5 06:20:12 PST 2016


Hello,

I am trying to build PDAL with Visual Studio 2015 Community version. I am aware that it is recommended to build with VS2012, but since there's a newer and fully featured version freely available I believe that's the better choice.
 So far I haven't been able to get build the code. I've been following the build howto on the pdal website (http://www.pdal.io/compilation/windows.html). Unfortunately it is a bit outdated but despite a few discrepancies in the text I've managed to create a VS2015 solution with cmake. When trying to build the solution I get a lot of errors related to C++11 data types (int32_t etc.). Here's an example:

13>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cstdint(38): error C2039: 'int32_t': is not a member of '`global namespace''
13>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cstdint(38): error C2873: 'int32_t': symbol cannot be used in a using-declaration

Basically the errors state that data types defined in cstdint are not accessible in the global namespace. Adding 'using namespace std' at the top of a .cpp-file doesn't change this. Neither does including stdint.h instead of cstdint.
There's an error for each data type defined in the cstdint header. It would seem that the errors are raised (for each type) every time cstdint is included. Errors are also raised when declaring variables with cstdint-types. I haven't been able to pinpoint where the problem starts, but since cstdint was first introduced in Visual Studio 2012 there is probably a few lines  of code that handles this situation. My guess is that the most recent version isn't taken care of in that bit of code. Either in the source code or the makefiles.

Any ideas on how to resolve this problem?

Best regards,
Kristian Evers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20160105/559d91d2/attachment.html>


More information about the pdal mailing list