eth4io / libkml

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

Would not compile on Ubuntu 9.10 with gcc 4.4.1 because of strchr and memcpy not found #135

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Checked out revision 747 and while compiling got an error that strchr and 
memcpy could not be found in src/kml/base/string_util.cc. I added the 
header string.h and it worked. Don't know for sure, but I thing gcc 4.4 is 
more carefully about including other header files then earlier version and 
that is what is causing this.

Thanks,
Paul

Index: kml/base/string_util.cc
===================================================================
--- kml/base/string_util.cc (revision 747)
+++ kml/base/string_util.cc (working copy)
@@ -28,6 +28,7 @@
 #include "kml/base/string_util.h"
 #include <stdlib.h>  // strtod()
 #include <strings.h>  // strncasecmp
+#include <string.h> // memcpy strcpy

 namespace kmlbase {

Original issue reported on code.google.com by pdmaseb...@gmail.com on 3 Feb 2010 at 3:23

GoogleCodeExporter commented 8 years ago

Original comment by kml.mash...@gmail.com on 19 Feb 2010 at 4:33