This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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]

Re: Target.ld


On Fri, Sep 17, 2004 at 11:45:27AM +0200, Meulendijks, J. wrote:
> Okee thanks. Now it works fine!
> 

> I have one athor question. When eCos configtool builds a
> configuration it builds 3 directories. One of them is _install, in
> this directory there's a map called include and lib. In the lib map
> there's the file libtarget.a this contains the eCos you just
> configured. But if you compile something like this:

> powerpc-eabi-gcc -I/ecos-c/ecos-work/kernel_install/include twothreads.c
> -L/ecos-c/ecos-work/kernel_install/lib/ -Ttarget.ld -nostdlib -o twothreads.exe
 
> you also need the include directory. Why is this? The library file
> contains all the functions needed, right?! Or am I confused here.

This is a beginners C question. How does the compiler know that rand()
takes no parameters and return an int? How does it know that the
function time() takes one paramter of type time_t and returns a
time_t. What is a time_t anyway?

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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