pombreda / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

libkml does not build under g++ ver 4.3.0, missing include <cstring> #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run "configure ; make" using GCC 4.3

What is the expected output? What do you see instead?
It should build. It doesn't, with compilation errors about memcpy for the
file libkml-0.6.0/src/kml/base/expat_parser.cc

What version of the product are you using? On what operating system?
The latest (0.6.0); but 0.5.0 also had this problem. Linux.

Did you run the unit test suite that comes with the project? Did all tests
pass?
Could not get this far.

Please provide any additional information below.

GCC 4.3 no longer includes cstring within, e.g., iostream, and thus it
needs to be specifically included when needed.

The fix is to add #include <cstring> to expat_parser.cc

Original issue reported on code.google.com by wx.k...@gmail.com on 12 Jan 2009 at 4:37

GoogleCodeExporter commented 9 years ago
Was fixed in r413

http://code.google.com/p/libkml/source/detail?r=413

Thanks for the report.

Original comment by kml.mash...@gmail.com on 12 Jan 2009 at 6:28

GoogleCodeExporter commented 9 years ago
I just uploaded a respin of 0.6 that includes this fix. 

Original comment by kml.mash...@gmail.com on 12 Jan 2009 at 5:40