Open cnasikas opened 6 years ago
Unfortunately, it's not possible to directly use implementations of stdlib functions from gcc or other normal compilers. You'll have to implement them yourself, subject to all the usual restrictions of pepper's compiler (C89, upper-bounded loops, etc.).
The system include path for pepper defaults to pepper/compiler/cstdinc
. There are some examples there of re-implementations of various headers that you can use (although, mostly, they only contain a few of the functions from the real library). You could add functions for atol and strlen there.
I see! Thanks a lot! The information you provided is very useful.
Hi
Is it possible to use
<stdlib.h>
and<string.h>
build-in libraries ? I am trying to useatol
andstrlen
but the compiler saysfatal error: string.h: No such file or directory
orfatal error: stdlib.h: No such file or directory
Is there a way to include those libraries or any alternative to use the specific functions ?
Thanks in advanced