[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] how can i use math functions in uclinux
Hi Moises,
moises j. cabrera wrote:
>
> i want to use math functions (in special trigonometric functions like
> sine or cosine) into my user applications programs using C++,
>
> What can i do??, wich library should i include??, does uclinux support
> this library??
>
In your C or C++ files #include <math.h>
and add "-lm" to the linker command. If you are creating your app using
the 'petalinux-new-app' script, then edit the generated Makefile adding
LDLIBS += -lm
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/