Hi,
I’m using binutils with newlib from yagarto and I’m trying to use “assert”
I have a file named “syscalls.c” who contains all the necessary stubs for working with newlib. All is fine.
To try to use “assert” what I have done is the following:
#include <assert.h>
…
assert(my_var < xx);
…
The linking isn’t ok, I got lot errors like this:
...libc.a(lib_a-syscalls.o): In function `_fstat':
...newlib-1.16.0/newlib/libc/sys/arm/syscalls.c:512: multiple definition of `_fstat'
C:/workspace/YottaOS/syscalls.o:C:/workspace/YottaOS/syscalls.c:33: first defined here