This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Compiling with Newlib...



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]