You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
have included /usr/include/stdint.h in leveldb/env.h. moreover,i try to add #include <stdint.h>; /#include ;using namespace std; into helpers/memenv/memenv.cc, but it's not use.
Hmm... memenv.h should include <stdint.h>. Sorry about that.
That being said... you said you've already tried adding #include <stdint.h>. I'm not sure what else it could be. The master branch generally passes Travis, meaning it should compile with reasonably new gcc and clang on Linux and Mac.
We've very recently switched to CMake. Give that a try and see if it works for you?
pwnall
changed the title
错误:‘SIZE_MAX’在此作用域中尚未声明
Error: ‘SIZE_MAX’ has not been declared in this scope
Mar 18, 2018
i try to compile with debug . i replace #OPT ?= -O2 -DNDEBUG with OPT ?= -g2 in MakeFile
ar: creating out-static/libleveldb.a
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -g2 -c helpers/memenv/memenv.cc -o out-static/helpers/memenv/memenv.o
helpers/memenv/memenv.cc: In member function ‘leveldb::Status leveldb::::FileState::Read(uint64_t, size_t, leveldb::Slice*, char*) const’:
helpers/memenv/memenv.cc:65: 错误:‘SIZE_MAX’在此作用域中尚未声明
make: *** [out-static/helpers/memenv/memenv.o] 错误 1
The text was updated successfully, but these errors were encountered: