problem printing floating point values inside realtime tasks
Allan Barredo <[email protected]> Thu, 17 Feb 2005 16:42:40 +0800
| Newsgroups | gmane.linux.real-time.rtlinux.general |
|---|---|
| Message-ID | <[email protected]> |
Hello to all,
I tried printing a simple floating point value inside a real-time thread using:
rtl_printf("%lf \n",dd_value);
but somehow it manages to print only:
%f
and not the value.
I have already used included the following in my code:
pthread_attr_init(&attr);
pthread_attr_setfp_np(&attr, 1);
pthread_create( &mythread, &attr, mythreadcode, (void *)0);
I also have the following in my Makefile:
-L/usr/lib -lm -lc
Am I missing something?
Thanks.
Allan
_______________________________________________
Rtl mailing list
[email protected]
http://www2.fsmlabs.com/mailman/listinfo/rtl