partio icon indicating copy to clipboard operation
partio copied to clipboard

ubuntu22.4_error: ‘istream’ is not a member of ‘std’

Open xieyouchen opened this issue 8 months ago • 2 comments

Hi! I found an error when I build my project on Ubuntu22.4 with gcc/g++ 1.1, cmake3.28.1 And the error maybe from the partio libarary. If someone can give me some advice, I would appreciate it.

[1/3] Building CXX object external/par...lib/CMakeFiles/partio.dir/io/PRT.cpp.o FAILED: external/partio/src/lib/CMakeFiles/partio.dir/io/PRT.cpp.o

/usr/bin/c++ -Dpartio_EXPORTS -I/tmp/tmp.N1TGuCtCNm/include -I/tmp/tmp.N1TGuCtCNm/external/glad/include -I/tmp/tmp.N1TGuCtCNm/external/partio/src/lib -I/tmp/tmp.N1TGuCtCNm/external/spdlog/include -g -std=c++11 -fPIC -fdiagnostics-color=always -w -Wextra -Wno-unused-parameter -MD -MT external/partio/src/lib/CMakeFiles/partio.dir/io/PRT.cpp.o -MF external/partio/src/lib/CMakeFiles/partio.dir/io/PRT.cpp.o.d -o external/partio/src/lib/CMakeFiles/partio.dir/io/PRT.cpp.o -c /tmp/tmp.N1TGuCtCNm/external/partio/src/lib/io/PRT.cpp

/tmp/tmp.N1TGuCtCNm/external/partio/src/lib/io/PRT.cpp:95:30: error: ‘istream’ is not a member of ‘std’ 95 | static bool read_buffer(std::istream& is, z_stream& z, char* in_buf, void* p, size_t size, std::ostream* errorStream) { | ^~~~~~~

/tmp/tmp.N1TGuCtCNm/external/partio/src/lib/io/PRT.cpp:92:1: note: ‘std::istream’ is defined in header ‘’; did you forget to ‘#include ’? 91 | #include "half2float.h" +++ |+#include 92 | };

xieyouchen avatar Jun 09 '24 22:06 xieyouchen