Gang,
> You need to link in the libgcc.a which is located at:
>
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libgcc.a
>
> It could be a slightly different directory depending on
> your linux
> install. These are some internal math rountines used by gcc.
The easy (and portable) way to find libgcc is to simply ask gcc
where it is. A command like:
gcc -print-libgcc-file-name
will print the location of the libgcc file. You can also use this
directly in your makefile with something like:
LIBGCC := $(shell $(CC) -print-libgcc-file-name)
and then adding ${LIBGCC} to the end of the ld line in your make
file.
> Now, I see you are including libm.a -- you will probably see
> multiple defines, since libm.a needs libc.a -- functions like
> perror. And
> you cannot bring in libc.a into the kernel for a variety of
> reasons. If
> you need math functionality, others may have solution to that ...
I have never had a problem using the math library without libc. In
fact, I have never successfully linked against libc at all for an RTLinux
module. Hmmm....
Regards,
Steve Cohen
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/