Adding Math.h library to a existing project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Adding Math.h library to a existing project

1,874 次查看
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.

标签 (1)
0 项奖励
3 回复数

1,588 次查看
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 项奖励

1,588 次查看
converse
Senior Contributor V

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

0 项奖励

1,588 次查看
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 项奖励