On Tuesday 13 March 2001 13:52, crzhang wrote:
> Hi,
> When I using math in C++ in RTLinux, I met the following:
> unresolved symbols: fputs
> unresolved symbols: stderr
> How should I do?
> Thx in advance.

Well, that's the usual problem with the math libs; they want to be nice and 
output some error codes if something goes wrong.

Either "implement" fputs(), and provide a fake stderr (you're the only one 
who will ever see it, as there are no calls that could use it in kernel 
space), or get the source of the math lib and just rip the code you need, 
rewriting the offendning error output code.

IIRC, I've also heard something about some versions of the math libs not 
doing error output directly, thus being usable in kernel space right away. 
Don't remember the details, and I'm not up to date as I haven't done serious 
maths in kernel space for a good while...


//David

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'
-- [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/

Reply via email to