cinohub / libkml

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

Build Fails uint32_t not declared in scope #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Build of libkml version 0.9.0 failed on Fedora 11 x86_64 with the following
error:

In file included from ../../../src/kml/base/attributes.h:37,
                 from attributes.cc:29:
../../../src/kml/base/string_util.h:42: error: variable or field 'b2a_hex'
declared void
../../../src/kml/base/string_util.h:42: error: 'uint32_t' was not declared
in this scope
../../../src/kml/base/string_util.h:42: error: expected primary-expression
before 'char'
make[4]: *** [attributes.lo] Error 1
make[4]: Leaving directory `/home/sweeney/Desktop/libkml-0.9.0/src/kml/base'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/sweeney/Desktop/libkml-0.9.0/src/kml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sweeney/Desktop/libkml-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sweeney/Desktop/libkml-0.9.0'
make: *** [all] Error 2

Adding the following include to string_util.h fixed the problem.
#include <stdint.h>

Original issue reported on code.google.com by asweene...@gmail.com on 29 Jun 2009 at 6:05

GoogleCodeExporter commented 8 years ago
string_util.h includes src/kml/base/util.h, which includes <stdint.h> if you're 
not
on windows. curious why this include isn't pulled for you.

Original comment by kml.mash...@gmail.com on 7 Oct 2009 at 10:36