miloyip/nativejson-benchmark

make -f benchmark.make issues

anlongfei opened this issue · 1 comments

$make -f benchmark.make
==== Building jsonclibs (release_x32) ====
==== Building nativejson (release_x32) ====
main.cpp
In file included from ../../src/test.h:3,
from ../../src/main.cpp:12:
../../src/memorystat.h:141:16: error: ‘std::MemoryStatCalloc’ has not been declared
141 | #define calloc MemoryStatCalloc
| ^~~~~~~~~~~~~~~~
../../src/memorystat.h:143:14: error: ‘void std::MemoryStatFree(void*)’ conflicts with a previous declaration
143 | #define free MemoryStatFree
| ^~~~~~~~~~~~~~
../../src/memorystat.h:134:13: note: previous declaration ‘void MemoryStatFree(void*)’
134 | extern void MemoryStatFree(void* ptr);
| ^~~~~~~~~~~~~~
../../src/memorystat.h:140:16: error: ‘void* std::MemoryStatMalloc(std::size_t)’ conflicts with a previous declaration
140 | #define malloc MemoryStatMalloc
| ^~~~~~~~~~~~~~~~
../../src/memorystat.h:131:14: note: previous declaration ‘void* MemoryStatMalloc(size_t)’
131 | extern void* MemoryStatMalloc(size_t size);
| ^~~~~~~~~~~~~~~~
../../src/memorystat.h:142:17: error: ‘void* std::MemoryStatRealloc(void*, std::size_t)’ conflicts with a previous declaration
142 | #define realloc MemoryStatRealloc
| ^~~~~~~~~~~~~~~~~
../../src/memorystat.h:133:14: note: previous declaration ‘void* MemoryStatRealloc(void*, size_t)’
133 | extern void* MemoryStatRealloc(void* ptr, size_t size);
| ^~~~~~~~~~~~~~~~~
make[1]: *** [../../intermediate/release_x32/gmake/x32/release/nativejson/main.o] Error 1
make: *** [nativejson] Error 2