Compiling with Newlib...

David J Croyle dcroyle@telerama.com
Wed May 31 11:41:00 GMT 2000


Hello,

I am trying to compile an application using the newlib libraries which I 
have successfully built. (newlib-1.8.2).


I have written a simple "hello world" program which includes <stdio.h>.

What is the procedure to compile and link with libc.a (such that I don't
get header file include errors?)

If I were to include a <math.h> as well, how would I link with libm.a &
libc.a 
together and avoid header file confusion?


Are there any environment variables that need to be set?


Thanks,

Dave Croyle


More information about the Newlib mailing list