I've followed all steps but when i try to compile i get this error:
g++ -MMD -I/usr/local/include -I. -g -Wall -Wshadow -Wsign-compare -Wextra -Wun reachable-code -Wuninitialized -Wshadow -O3 -DNDEBUG -std=c++11 -U__STRICT_ANSI __ -c -o write_json.o write_json.cpp write_json.cpp: In member function ‘void json_writer::aprintf(const char*, ...)’ : write_json.cpp:205:32: error: ‘vasprintf’ was not declared in this scope if (vasprintf(&tmp, format, ap) < 0) { ^ make: *** [Makefile:74: write_json.o] Error 1
I've followed all steps but when i try to compile i get this error:
g++ -MMD -I/usr/local/include -I. -g -Wall -Wshadow -Wsign-compare -Wextra -Wun reachable-code -Wuninitialized -Wshadow -O3 -DNDEBUG -std=c++11 -U__STRICT_ANSI __ -c -o write_json.o write_json.cpp write_json.cpp: In member function ‘void json_writer::aprintf(const char*, ...)’ : write_json.cpp:205:32: error: ‘vasprintf’ was not declared in this scope if (vasprintf(&tmp, format, ap) < 0) { ^ make: *** [Makefile:74: write_json.o] Error 1