Adding Math.h library to a existing project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding Math.h library to a existing project

1,815 Views
kartheekgajjala
Contributor II

I am trying to use lround function and it requires math.h to be included but I am not sure how to include it to an existing project that I have created. I have just created a new C/C++ project.  I have attached what the library settings are for my project below.

Labels (1)
0 Kudos
3 Replies

1,529 Views
kartheekgajjala
Contributor II

I was using Redlib and I tried all 3 configuratoins of none, nohost and semihost. However when I try it with newlib it doesnt give me the error. Not sure why thats the case.

0 Kudos

1,529 Views
converse
Senior Contributor V

Redlib is a small C90 library implementation. See https://community.nxp.com/thread/389152 

0 Kudos

1,529 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Kartheek Gajjala,

Is there some error when you config like yours? Please take a screenshot show it.

Also what about the name of lib ?

There is a DOC about how to add static lib in MCUXpresso IDE:

How to create and use static library in MCUXpresso IDE  

If still have problem, please attach your project and lib.


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos