Hello I'm having trouble integrating crow
in my system program. I previously used crow
no issues in a standalone program I built with -lpthread -lboost_system -lz
. Now with static building it has introduced these compiler errors:
The only difference I'm imagining is the addition of building with jemmaloc
and a different version of boost
?
Any help would be greatly appreciated!
root@f6c760e66602:/home/expo/resilientdb# make
g++ -c -Wall -g -gdwarf-3 -std=c++0x -rdynamic -I. -I./benchmarks -I./client/ -I./transport -I./system -I./statistics -I./blockchain -I./smart_contracts -I./data_structures -Ideps/jemalloc-5.1.0/include -Ideps/nng-1.3.2/include -Ideps/boost_1_76_0 -Ideps/crypto -I./db -Ideps/sqlite-autoconf-3290000/build/include -D NOGRAPHITE=1 -Werror -Wno-sizeof-pointer-memaccess -o obj/client_main.o client/client_main.cpp
In file included from client/client_main.cpp:17:0:
client/../deps/crow_all.h: In function 'std::__cxx11::string crow::compression::compress_string(const string&, crow::compression::algorithm)':
client/../deps/crow_all.h:6835:13: error: 'z_stream' was not declared in this scope
z_stream stream{};
^~~~~~~~
client/../deps/crow_all.h:6835:13: note: suggested alternative: 'nng_stream'
z_stream stream{};
^~~~~~~~
nng_stream
client/../deps/crow_all.h:6837:19: error: '::deflateInit2' has not been declared
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~~~
client/../deps/crow_all.h:6837:33: error: 'stream' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~
client/../deps/crow_all.h:6837:33: note: suggested alternative: 'strcat'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~
strcat
client/../deps/crow_all.h:6837:41: error: 'Z_DEFAULT_COMPRESSION' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~~~~~~~~~~~~
client/../deps/crow_all.h:6837:41: note: suggested alternative: '_DEFAULT_SOURCE'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~~~~~~~~~~~~
_DEFAULT_SOURCE
client/../deps/crow_all.h:6837:64: error: 'Z_DEFLATED' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~
client/../deps/crow_all.h:6837:64: note: suggested alternative: 'DEFLATE'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~
DEFLATE
client/../deps/crow_all.h:6837:85: error: 'Z_DEFAULT_STRATEGY' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEG
) == Z_OK)
^~~~~~~~~~~~~~~~~
client/../deps/crow_all.h:6837:85: note: suggested alternative: '_DEFAULT_SOURCE'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEG
) == Z_OK)
^~~~~~~~~~~~~~~~~
_DEFAULT_SOURCE
client/../deps/crow_all.h:6837:108: error: 'Z_OK' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~
client/../deps/crow_all.h:6837:108: note: suggested alternative: 'F_OK'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~
F_OK
client/../deps/crow_all.h:6843:45: error: 'Bytef' does not name a type; did you mean 'byte'?
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^~~~~
byte
client/../deps/crow_all.h:6843:51: error: expected '>' before '*' token
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^
client/../deps/crow_all.h:6843:51: error: expected '(' before '*' token
client/../deps/crow_all.h:6843:52: error: expected primary-expression before '>' token
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^
client/../deps/crow_all.h:6843:77: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^~~~~
client/../deps/crow_all.h:6843:77: error: expected '>' before 'Bytef'
client/../deps/crow_all.h:6843:77: error: expected '(' before 'Bytef'
client/../deps/crow_all.h:6843:77: error: 'Bytef' was not declared in this scope
client/../deps/crow_all.h:6843:77: note: suggested alternative: 'byte'
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^~~~~
byte
client/../deps/crow_all.h:6843:84: error: expected primary-expression before '>' token
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^
client/../deps/crow_all.h:6843:99: error: expected ')' before ';' token
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^
client/../deps/crow_all.h:6843:99: error: expected ')' before ';' token
client/../deps/crow_all.h:6849:56: error: 'Bytef' does not name a type; did you mean 'byte'?
stream.next_out = reinterpret_cast<Bytef *>(&buffer[0]);
^~~~~
byte
client/../deps/crow_all.h:6849:62: error: expected '>' before '*' token
stream.next_out = reinterpret_cast<Bytef *>(&buffer[0]);
^
client/../deps/crow_all.h:6849:62: error: expected '(' before '*' token
client/../deps/crow_all.h:6849:63: error: expected primary-expression before '>' token
stream.next_out = reinterpret_cast<Bytef *>(&buffer[0]);
^
client/../deps/crow_all.h:6849:76: error: expected ')' before ';' token
stream.next_out = reinterpret_cast<Bytef *>(&buffer[0]);
^
client/../deps/crow_all.h:6851:30: error: '::deflate' has not been declared
code = ::deflate(&stream, Z_FINISH);
^~~~~~~
client/../deps/crow_all.h:6851:30: note: suggested alternative: 'getdate'
code = ::deflate(&stream, Z_FINISH);
^~~~~~~
getdate
client/../deps/crow_all.h:6851:47: error: 'Z_FINISH' was not declared in this scope
code = ::deflate(&stream, Z_FINISH);
^~~~~~~~
client/../deps/crow_all.h:6851:47: note: suggested alternative: 'FINISH'
code = ::deflate(&stream, Z_FINISH);
^~~~~~~~
FINISH
client/../deps/crow_all.h:6853:49: error: 'Z_STREAM_END' was not declared in this scope
if (code == Z_OK || code == Z_STREAM_END)
^~~~~~~~~~~~
client/../deps/crow_all.h:6853:49: note: suggested alternative: '_ISTREAM_TCC'
if (code == Z_OK || code == Z_STREAM_END)
^~~~~~~~~~~~
_ISTREAM_TCC
client/../deps/crow_all.h:6860:29: error: 'Z_STREAM_END' was not declared in this scope
if (code != Z_STREAM_END)
^~~~~~~~~~~~
client/../deps/crow_all.h:6860:29: note: suggested alternative: '_ISTREAM_TCC'
if (code != Z_STREAM_END)
^~~~~~~~~~~~
_ISTREAM_TCC
client/../deps/crow_all.h:6863:19: error: '::deflateEnd' has not been declared
::deflateEnd(&stream);
^~~~~~~~~~
client/../deps/crow_all.h: In function 'std::__cxx11::string crow::compression::decompress_string(const string&)':
client/../deps/crow_all.h:6872:13: error: 'Bytef' was not declared in this scope
Bytef tmp[8192];
^~~~~
client/../deps/crow_all.h:6872:13: note: suggested alternative: 'byte'
Bytef tmp[8192];
^~~~~
byte
client/../deps/crow_all.h:6874:13: error: 'z_stream' was not declared in this scope
z_stream zstream{};
^~~~~~~~
client/../deps/crow_all.h:6874:13: note: suggested alternative: 'nng_stream'
z_stream zstream{};
^~~~~~~~
nng_stream
client/../deps/crow_all.h:6875:13: error: 'zstream' was not declared in this scope
zstream.avail_in = deflated_string.size();
^~~~~~~
client/../deps/crow_all.h:6875:13: note: suggested alternative: 'strcat'
zstream.avail_in = deflated_string.size();
^~~~~~~
strcat
client/../deps/crow_all.h:6877:42: error: 'Bytef' does not name a type; did you mean 'byte'?
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^~~~~
byte
client/../deps/crow_all.h:6877:48: error: expected '>' before '*' token
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^
client/../deps/crow_all.h:6877:48: error: expected '(' before '*' token
client/../deps/crow_all.h:6877:49: error: expected primary-expression before '>' token
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^
client/../deps/crow_all.h:6877:68: error: 'Bytef' does not name a type; did you mean 'byte'?
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^~~~~
byte
client/../deps/crow_all.h:6877:74: error: expected '>' before 'const'
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^~~~~
client/../deps/crow_all.h:6877:74: error: expected '(' before 'const'
client/../deps/crow_all.h:6877:74: error: expected primary-expression before 'const'
client/../deps/crow_all.h:6877:74: error: expected ')' before 'const'
client/../deps/crow_all.h:6877:74: error: expected ')' before 'const'
client/../deps/crow_all.h:6877:108: error: expected ')' before ';' token
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()))
client/../deps/crow_all.h:6879:19: error: '::inflateInit2' has not been declared
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~~~~~~~~~
client/../deps/crow_all.h:6879:19: note: suggested alternative: 'inflated_string'
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~~~~~~~~~
inflated_string
client/../deps/crow_all.h:6879:42: error: 'MAX_WBITS' was not declared in this scope
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~~~~~~
client/../deps/crow_all.h:6879:42: note: suggested alternative: 'GAI_WAIT'
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~~~~~~
GAI_WAIT
client/../deps/crow_all.h:6879:61: error: 'Z_OK' was not declared in this scope
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~
client/../deps/crow_all.h:6879:61: note: suggested alternative: 'F_OK'
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~
F_OK
client/../deps/crow_all.h:6883:48: error: 'tmp' was not declared in this scope
zstream.avail_out = sizeof(tmp);
^~~
client/../deps/crow_all.h:6883:48: note: suggested alternative: 'tcp'
zstream.avail_out = sizeof(tmp);
^~~
tcp
client/../deps/crow_all.h:6886:34: error: '::inflate' has not been declared
auto ret = ::inflate(&zstream, Z_NO_FLUSH);
^~~~~~~
client/../deps/crow_all.h:6886:34: note: suggested alternative: 'iface'
auto ret = ::inflate(&zstream, Z_NO_FLUSH);
^~~~~~~
iface
client/../deps/crow_all.h:6886:52: error: 'Z_NO_FLUSH' was not declared in this scope
auto ret = ::inflate(&zstream, Z_NO_FLUSH);
^~~~~~~~~~
client/../deps/crow_all.h:6886:52: note: suggested alternative: 'NOFLSH'
auto ret = ::inflate(&zstream, Z_NO_FLUSH);
^~~~~~~~~~
NOFLSH
client/../deps/crow_all.h:6887:47: error: 'Z_STREAM_END' was not declared in this scope
if (ret == Z_OK || ret == Z_STREAM_END)
^~~~~~~~~~~~
client/../deps/crow_all.h:6887:47: note: suggested alternative: '_ISTREAM_TCC'
if (ret == Z_OK || ret == Z_STREAM_END)
^~~~~~~~~~~~
_ISTREAM_TCC
client/../deps/crow_all.h:6901:19: error: '::inflateEnd' has not been declared
::inflateEnd(&zstream);
^~~~~~~~~~
Makefile:79: recipe for target 'obj/client_main.o' failed
make: *** [obj/client_main.o] Error 1
root@f6c760e66602:/home/expo/resilientdb# make
g++ -c -Wall -g -gdwarf-3 -std=c++0x -rdynamic -I. -I./benchmarks -I./client/ -I./transport -I./system -I./statistics -I./blockchain -I./smart_contracts -I./data_structures -Ideps/jemalloc-5.1.0/include -Ideps/nng-1.3.2/include -Ideps/boost_1_76_0 -Ideps/crypto -I./db -Ideps/sqlite-autoconf-3290000/build/include -D NOGRAPHITE=1 -Werror -Wno-sizeof-pointer-memaccess -o obj/client_main.o client/client_main.cpp
In file included from client/client_main.cpp:17:0:
client/../deps/crow_all.h: In function 'std::__cxx11::string crow::compression::compress_string(const string&, crow::compression::algorithm)':
client/../deps/crow_all.h:6835:13: error: 'z_stream' was not declared in this scope
z_stream stream{};
^~~~~~~~
client/../deps/crow_all.h:6835:13: note: suggested alternative: 'nng_stream'
z_stream stream{};
^~~~~~~~
nng_stream
client/../deps/crow_all.h:6837:19: error: '::deflateInit2' has not been declared
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~~~
client/../deps/crow_all.h:6837:33: error: 'stream' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~
client/../deps/crow_all.h:6837:33: note: suggested alternative: 'strcat'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~
strcat
client/../deps/crow_all.h:6837:41: error: 'Z_DEFAULT_COMPRESSION' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~~~~~~~~~~~~
client/../deps/crow_all.h:6837:41: note: suggested alternative: '_DEFAULT_SOURCE'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~~~~~~~~~~~~
_DEFAULT_SOURCE
client/../deps/crow_all.h:6837:64: error: 'Z_DEFLATED' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~
client/../deps/crow_all.h:6837:64: note: suggested alternative: 'DEFLATE'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~~~~~~~
DEFLATE
client/../deps/crow_all.h:6837:85: error: 'Z_DEFAULT_STRATEGY' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEG
) == Z_OK)
^~~~~~~~~~~~~~~~~
client/../deps/crow_all.h:6837:85: note: suggested alternative: '_DEFAULT_SOURCE'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEG
) == Z_OK)
^~~~~~~~~~~~~~~~~
_DEFAULT_SOURCE
client/../deps/crow_all.h:6837:108: error: 'Z_OK' was not declared in this scope
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~
client/../deps/crow_all.h:6837:108: note: suggested alternative: 'F_OK'
if (::deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, algo, 8, Z_DEFAULT_STRATEGY) == Z_OK)
^~~~
F_OK
client/../deps/crow_all.h:6843:45: error: 'Bytef' does not name a type; did you mean 'byte'?
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^~~~~
byte
client/../deps/crow_all.h:6843:51: error: expected '>' before '*' token
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^
client/../deps/crow_all.h:6843:51: error: expected '(' before '*' token
client/../deps/crow_all.h:6843:52: error: expected primary-expression before '>' token
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^
client/../deps/crow_all.h:6843:77: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^~~~~
client/../deps/crow_all.h:6843:77: error: expected '>' before 'Bytef'
client/../deps/crow_all.h:6843:77: error: expected '(' before 'Bytef'
client/../deps/crow_all.h:6843:77: error: 'Bytef' was not declared in this scope
client/../deps/crow_all.h:6843:77: note: suggested alternative: 'byte'
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^~~~~
byte
client/../deps/crow_all.h:6843:84: error: expected primary-expression before '>' token
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^
client/../deps/crow_all.h:6843:99: error: expected ')' before ';' token
stream.next_in = const_cast<Bytef *>(reinterpret_cast<const Bytef *>(str.c_str()));
^
client/../deps/crow_all.h:6843:99: error: expected ')' before ';' token
client/../deps/crow_all.h:6849:56: error: 'Bytef' does not name a type; did you mean 'byte'?
stream.next_out = reinterpret_cast<Bytef *>(&buffer[0]);
^~~~~
byte
client/../deps/crow_all.h:6849:62: error: expected '>' before '*' token
stream.next_out = reinterpret_cast<Bytef *>(&buffer[0]);
^
client/../deps/crow_all.h:6849:62: error: expected '(' before '*' token
client/../deps/crow_all.h:6849:63: error: expected primary-expression before '>' token
stream.next_out = reinterpret_cast<Bytef *>(&buffer[0]);
^
client/../deps/crow_all.h:6849:76: error: expected ')' before ';' token
stream.next_out = reinterpret_cast<Bytef *>(&buffer[0]);
^
client/../deps/crow_all.h:6851:30: error: '::deflate' has not been declared
code = ::deflate(&stream, Z_FINISH);
^~~~~~~
client/../deps/crow_all.h:6851:30: note: suggested alternative: 'getdate'
code = ::deflate(&stream, Z_FINISH);
^~~~~~~
getdate
client/../deps/crow_all.h:6851:47: error: 'Z_FINISH' was not declared in this scope
code = ::deflate(&stream, Z_FINISH);
^~~~~~~~
client/../deps/crow_all.h:6851:47: note: suggested alternative: 'FINISH'
code = ::deflate(&stream, Z_FINISH);
^~~~~~~~
FINISH
client/../deps/crow_all.h:6853:49: error: 'Z_STREAM_END' was not declared in this scope
if (code == Z_OK || code == Z_STREAM_END)
^~~~~~~~~~~~
client/../deps/crow_all.h:6853:49: note: suggested alternative: '_ISTREAM_TCC'
if (code == Z_OK || code == Z_STREAM_END)
^~~~~~~~~~~~
_ISTREAM_TCC
client/../deps/crow_all.h:6860:29: error: 'Z_STREAM_END' was not declared in this scope
if (code != Z_STREAM_END)
^~~~~~~~~~~~
client/../deps/crow_all.h:6860:29: note: suggested alternative: '_ISTREAM_TCC'
if (code != Z_STREAM_END)
^~~~~~~~~~~~
_ISTREAM_TCC
client/../deps/crow_all.h:6863:19: error: '::deflateEnd' has not been declared
::deflateEnd(&stream);
^~~~~~~~~~
client/../deps/crow_all.h: In function 'std::__cxx11::string crow::compression::decompress_string(const string&)':
client/../deps/crow_all.h:6872:13: error: 'Bytef' was not declared in this scope
Bytef tmp[8192];
^~~~~
client/../deps/crow_all.h:6872:13: note: suggested alternative: 'byte'
Bytef tmp[8192];
^~~~~
byte
client/../deps/crow_all.h:6874:13: error: 'z_stream' was not declared in this scope
z_stream zstream{};
^~~~~~~~
client/../deps/crow_all.h:6874:13: note: suggested alternative: 'nng_stream'
z_stream zstream{};
^~~~~~~~
nng_stream
client/../deps/crow_all.h:6875:13: error: 'zstream' was not declared in this scope
zstream.avail_in = deflated_string.size();
^~~~~~~
client/../deps/crow_all.h:6875:13: note: suggested alternative: 'strcat'
zstream.avail_in = deflated_string.size();
^~~~~~~
strcat
client/../deps/crow_all.h:6877:42: error: 'Bytef' does not name a type; did you mean 'byte'?
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^~~~~
byte
client/../deps/crow_all.h:6877:48: error: expected '>' before '*' token
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^
client/../deps/crow_all.h:6877:48: error: expected '(' before '*' token
client/../deps/crow_all.h:6877:49: error: expected primary-expression before '>' token
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^
client/../deps/crow_all.h:6877:68: error: 'Bytef' does not name a type; did you mean 'byte'?
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^~~~~
byte
client/../deps/crow_all.h:6877:74: error: expected '>' before 'const'
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()));
^~~~~
client/../deps/crow_all.h:6877:74: error: expected '(' before 'const'
client/../deps/crow_all.h:6877:74: error: expected primary-expression before 'const'
client/../deps/crow_all.h:6877:74: error: expected ')' before 'const'
client/../deps/crow_all.h:6877:74: error: expected ')' before 'const'
client/../deps/crow_all.h:6877:108: error: expected ')' before ';' token
zstream.next_in = const_cast<Bytef *>(reinterpret_cast<Bytef const *>(deflated_string.c_str()))
client/../deps/crow_all.h:6879:19: error: '::inflateInit2' has not been declared
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~~~~~~~~~
client/../deps/crow_all.h:6879:19: note: suggested alternative: 'inflated_string'
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~~~~~~~~~
inflated_string
client/../deps/crow_all.h:6879:42: error: 'MAX_WBITS' was not declared in this scope
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~~~~~~
client/../deps/crow_all.h:6879:42: note: suggested alternative: 'GAI_WAIT'
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~~~~~~
GAI_WAIT
client/../deps/crow_all.h:6879:61: error: 'Z_OK' was not declared in this scope
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~
client/../deps/crow_all.h:6879:61: note: suggested alternative: 'F_OK'
if (::inflateInit2(&zstream, MAX_WBITS | 32) == Z_OK)
^~~~
F_OK
client/../deps/crow_all.h:6883:48: error: 'tmp' was not declared in this scope
zstream.avail_out = sizeof(tmp);
^~~
client/../deps/crow_all.h:6883:48: note: suggested alternative: 'tcp'
zstream.avail_out = sizeof(tmp);
^~~
tcp
client/../deps/crow_all.h:6886:34: error: '::inflate' has not been declared
auto ret = ::inflate(&zstream, Z_NO_FLUSH);
^~~~~~~
client/../deps/crow_all.h:6886:34: note: suggested alternative: 'iface'
auto ret = ::inflate(&zstream, Z_NO_FLUSH);
^~~~~~~
iface
client/../deps/crow_all.h:6886:52: error: 'Z_NO_FLUSH' was not declared in this scope
auto ret = ::inflate(&zstream, Z_NO_FLUSH);
^~~~~~~~~~
client/../deps/crow_all.h:6886:52: note: suggested alternative: 'NOFLSH'
auto ret = ::inflate(&zstream, Z_NO_FLUSH);
^~~~~~~~~~
NOFLSH
client/../deps/crow_all.h:6887:47: error: 'Z_STREAM_END' was not declared in this scope
if (ret == Z_OK || ret == Z_STREAM_END)
^~~~~~~~~~~~
client/../deps/crow_all.h:6887:47: note: suggested alternative: '_ISTREAM_TCC'
if (ret == Z_OK || ret == Z_STREAM_END)
^~~~~~~~~~~~
_ISTREAM_TCC
client/../deps/crow_all.h:6901:19: error: '::inflateEnd' has not been declared
::inflateEnd(&zstream);
^~~~~~~~~~
Makefile:79: recipe for target 'obj/client_main.o' failed
make: *** [obj/client_main.o] Error 1