This is the mail archive of the newlib@sourceware.org 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] |
Other format: | [Raw text] |
I'm working on a hobby OS and want to port a simple C library so that I don't have to write the library myself (and so that eventually I can port GCC and binutils and have the OS self-hosting).
The problem is, I don't know how to port newlib... I have a file called syscalls.c that I wrote which has implementation outlined as required in the documentation (libc.info, syscalls section) - every function (_exit, _open, et al).
Where exactly do I put this code?
Also, when I built the library and tried to link with a simple "Hello World" program (the out-of-the-box version, no changes at all) I got "undefined reference to `printf'"... Any ideas?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |