Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 16
Registered: ‎04-28-2013
My Device: PlayBook
My Carrier: none

What is the m library for?

I created a simple OpenGL test app in the NDK and I see that the following libraries are linked into the app:

bps screen EGL GLESv2 freetype png m

 I understand what all the libraries are for except for the last one (m).  What is this library file for and why does it need to be linked in?

 

 

_______________________________________________________
C++, 3D OpenGL and Game Programming video tutorials:
http://www.MarekKnows.com
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889
Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: What is the m library for?

The m library is the math library if i remember correctly.
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: What is the m library for?

Googling "what is libm" gives some handy answers, including http://www.unix.com/man-page/OpenSolaris/3lib/libm/

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!