This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
How to link against newlib?
- From: Christian Haake <chaake at mailbox dot tu-berlin dot de>
- To: newlib at sourceware dot org
- Date: Sat, 30 Jun 2012 00:12:47 +0200
- Subject: How to link against newlib?
Hi there,
this is my first post so I apologize if my question is a duplicate...
Currently I'm trying to implement the sbrk() system call which is used
by malloc. For this in the syscalls.c file I included a header file
called pagealloc.h.
But while compiling I get a "undefined reference" error because the
associated object file will not be linked.
So my question is how to tell newlib which object file to link with.
Should I customize a Makefile and if yes, which one and how?!?
Thanks in advance for your help.
Chris