Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make -f benchmark.make issues #129

Closed
anlongfei opened this issue May 29, 2020 · 1 comment
Closed

make -f benchmark.make issues #129

anlongfei opened this issue May 29, 2020 · 1 comment

Comments

@anlongfei
Copy link

anlongfei commented May 29, 2020

$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

@anlongfei
Copy link
Author

ref : #102 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant