nebula-cpp icon indicating copy to clipboard operation
nebula-cpp copied to clipboard

NebulaGraph CPP complie error

Open gamawangzi opened this issue 1 year ago • 0 comments

I didn't encounter any errors when running cmake, but I ran into the following errors when running make ..

/home/wangqian/lib/cppnebulagraph/nebula-cpp/include/common/datatypes/Date.h:26:25: error: expected ‘)’ before ‘days’ 26 | explicit Date(uint64_t days); | ~ ^~~~~ | ) /home/wangqian/lib/cppnebulagraph/nebula-cpp/include/common/datatypes/Date.h:133:7: error: ‘uint64_t’ does not name a type 133 | uint64_t month : 4; **then i add the #include but errors like this : ** `In file included from /home/wangqian/lib/cppnebulagraph/nebula-cpp/include/common/geo/io/wkb/ByteOrderDataIOStream.h:10, from /home/wangqian/lib/cppnebulagraph/nebula-cpp/src/geo/io/wkb/ByteOrderDataIOStream.cpp:6: /home/wangqian/lib/cppnebulagraph/nebula-cpp/include/common/geo/io/wkb/ByteOrder.h:11:6: error: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword [-Werror] 11 | enum class ByteOrder : uint8_t {

~~~~ ^~~~~
/home/wangqian/lib/cppnebulagraph/nebula-cpp/include/common/geo/io/wkb/ByteOrder.h:11:22: error: found ‘:’ in nested-name-specifier, expected ‘::’
11

gamawangzi avatar Aug 27 '24 07:08 gamawangzi