[travis@travispc gnu.make.lib]$ make
g++ -g -DNDEBUG -O3 -march=native -shared -fPIC -ftls-model=initial-exec gnuwrapper.cc -o libltalloc.so
gnuwrapper.cc: In function ‘void malloc(size_t)’:
gnuwrapper.cc:15:21: error: ‘ltalloc’ was not declared in this scope
return ltalloc(size);
^
gnuwrapper.cc: In function ‘void calloc(size_t, size_t)’:
gnuwrapper.cc:27:29: error: ‘ltalloc’ was not declared in this scope
void result = ltalloc(size);
^
gnuwrapper.cc: In function ‘void realloc(void, size_t)’:
gnuwrapper.cc:41:41: error: ‘ltalloc_usable_size’ was not declared in this scope
size_t uSize = ltalloc_usable_size(ptr);
^
gnuwrapper.cc:44:28: error: ‘ltalloc’ was not declared in this scope
void newp = ltalloc(size);
^
gnuwrapper.cc:50:22: error: ‘ltalloc’ was not declared in this scope
return ltalloc(size);
^
gnuwrapper.cc: In function ‘void memalign(size_t, size_t)’:
gnuwrapper.cc:56:56: error: ‘ltalloc’ was not declared in this scope
return ltalloc((size + (alignment-1)) & ~(alignment-1));
^
gnuwrapper.cc: In function ‘void aligned_alloc(size_t, size_t)’:
gnuwrapper.cc:73:21: error: ‘ltalloc’ was not declared in this scope
return ltalloc(size);
^
gnuwrapper.cc: In function ‘size_t malloc_usable_size(void*)’:
gnuwrapper.cc:88:32: error: ‘ltalloc_usable_size’ was not declared in this scope
return ltalloc_usable_size(ptr);
^
gnuwrapper.cc: In function ‘int malloc_trim(size_t)’:
gnuwrapper.cc:93:21: error: ‘ltalloc_squeeze’ was not declared in this scope
ltalloc_squeeze(pad);
^
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 1
Error when trying to compile on Fedora Linux:
[travis@travispc gnu.make.lib]$ make g++ -g -DNDEBUG -O3 -march=native -shared -fPIC -ftls-model=initial-exec gnuwrapper.cc -o libltalloc.so gnuwrapper.cc: In function ‘void malloc(size_t)’: gnuwrapper.cc:15:21: error: ‘ltalloc’ was not declared in this scope return ltalloc(size); ^ gnuwrapper.cc: In function ‘void calloc(size_t, size_t)’: gnuwrapper.cc:27:29: error: ‘ltalloc’ was not declared in this scope void result = ltalloc(size); ^ gnuwrapper.cc: In function ‘void realloc(void, size_t)’: gnuwrapper.cc:41:41: error: ‘ltalloc_usable_size’ was not declared in this scope size_t uSize = ltalloc_usable_size(ptr); ^ gnuwrapper.cc:44:28: error: ‘ltalloc’ was not declared in this scope void newp = ltalloc(size); ^ gnuwrapper.cc:50:22: error: ‘ltalloc’ was not declared in this scope return ltalloc(size); ^ gnuwrapper.cc: In function ‘void memalign(size_t, size_t)’: gnuwrapper.cc:56:56: error: ‘ltalloc’ was not declared in this scope return ltalloc((size + (alignment-1)) & ~(alignment-1)); ^ gnuwrapper.cc: In function ‘void aligned_alloc(size_t, size_t)’: gnuwrapper.cc:73:21: error: ‘ltalloc’ was not declared in this scope return ltalloc(size); ^ gnuwrapper.cc: In function ‘size_t malloc_usable_size(void*)’: gnuwrapper.cc:88:32: error: ‘ltalloc_usable_size’ was not declared in this scope return ltalloc_usable_size(ptr); ^ gnuwrapper.cc: In function ‘int malloc_trim(size_t)’: gnuwrapper.cc:93:21: error: ‘ltalloc_squeeze’ was not declared in this scope ltalloc_squeeze(pad); ^ Makefile:5: recipe for target 'all' failed make: *** [all] Error 1