Forum Discussion
Altera_Forum
Honored Contributor
20 years agohow to link math.h
hi all When I run a program with trigonometric function like sin, cos,tan etc.. I get errors: <div class='quotetop'>QUOTE </div> --- Quote Start --- [jay@localhost test]$ nios2-li...
Altera_Forum
Honored Contributor
20 years agoI found the method to solve problem from the network.
need to add the "-lm" in commandnios2-linux-uclibc-gcc test.c -o test -elf2flt -lm