Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS] proj_json_streaming_writer.hpp: error: 'int64_t' in namespace 'std' does not name a type #26

Closed
barracuda156 opened this issue Jan 18, 2024 · 0 comments

Comments

@barracuda156
Copy link

Some header is missing here, apparently:

In file included from proj/iso19111/common.cpp:44:
../src/include/R-libproj/proj_json_streaming_writer.hpp:42:14: error: 'int64_t' in namespace 'std' does not name a type
   42 | typedef std::int64_t GIntBig;
      |              ^~~~~~~
../src/include/R-libproj/proj_json_streaming_writer.hpp:43:14: error: 'uint64_t' in namespace 'std' does not name a type; did you mean 'wint_t'?
   43 | typedef std::uint64_t GUInt64;
      |              ^~~~~~~~
      |              wint_t
../src/include/R-libproj/proj_json_streaming_writer.hpp:93:14: error: 'GIntBig' has not been declared
   93 |     void Add(GIntBig nVal);
      |              ^~~~~~~
../src/include/R-libproj/proj_json_streaming_writer.hpp:93:10: error: 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)' cannot be overloaded with 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)'
   93 |     void Add(GIntBig nVal);
      |          ^~~
../src/include/R-libproj/proj_json_streaming_writer.hpp:91:10: note: previous declaration 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)'
   91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
      |          ^~~
../src/include/R-libproj/proj_json_streaming_writer.hpp:94:14: error: 'GUInt64' has not been declared
   94 |     void Add(GUInt64 nVal);
      |              ^~~~~~~
../src/include/R-libproj/proj_json_streaming_writer.hpp:94:10: error: 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)' cannot be overloaded with 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)'
   94 |     void Add(GUInt64 nVal);
      |          ^~~
../src/include/R-libproj/proj_json_streaming_writer.hpp:91:10: note: previous declaration 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)'
   91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
      |          ^~~
../src/include/R-libproj/proj_json_streaming_writer.hpp: In member function 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)':
../src/include/R-libproj/proj_json_streaming_writer.hpp:91:42: error: 'GIntBig' does not name a type
   91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
      |                                          ^~~~~~~
../src/include/R-libproj/proj_json_streaming_writer.hpp: In member function 'void osgeo::proj::CPLJSonStreamingWriter::Add(unsigned int)':
../src/include/R-libproj/proj_json_streaming_writer.hpp:92:51: error: 'GIntBig' does not name a type
   92 |     void Add(unsigned int nVal) { Add(static_cast<GIntBig>(nVal)); }
      |                                                   ^~~~~~~
make: *** [proj/iso19111/common.o] Error 1

Similar error on Ubuntu earlier: carla-simulator/carla#6776

paleolimbot added a commit that referenced this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant