It IS possible to use the math library in modules; I've been doing it for
several years. But -- except for certain selected functions -- you can not
use the standard library functions.
To link your module with the math library, just add "-lm" to the partial
link command. Even if you don't want to run with it, it's worth doing to
see if that's where your problems lie.
Norm
> -----Original Message-----
> From: Back Michael (extern) [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 2:08 AM
> To: '[EMAIL PROTECTED]'; rtlinux mailing list
> Cc: comedi mailing list
> Subject: RE: [rtl] fputs, stderr
>
> Hi,
> I have the same problem and I am maybe on the way to find out what is
> wrong.
> I think these unresolved symbol are from the math-lib
> /usr/lib/libm.... and so on.
> Do you use this lib too ?
> Michael
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 27, 2001 12:02 AM
> > To: rtlinux mailing list
> > Cc: comedi mailing list
> > Subject: [rtl] fputs, stderr
> >
> >
> > I've upgraded some old code to run on 2.4.1x86-rtl-3.0.
> > It uses comedi which I've hobbled together to run on this rtl patch,
> > comedi 0.7.59 and comedilib 0.7.15.
> >
> > The code compiles fine (1 assembler warning that I don't understand,
> > seems insignificant) but when I try inserting the resulting realtime
> > module:
> >
> > example.o: unresolved symbol fputs
> > example.o: unresolved symbol stderr
> >
> > and subsequently the module doesn't insert. Of course I'm not linking
> > stdio, and I'm not trying to use any of the calls within. I even
> commented
> > out all printk's and rtl_printf's thinking maybe I was using the wrong
> > declaration in some bizarre header file, but the same message appears.
> >
> > Any advice before I strip the code to nothing to see which function
> > call (I suspect the comedilib functions) is to blame? I'd greatly
> > appreciate it...
> >
> > -Chuck
> >
> > -- [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/
> -- [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/
-- [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/