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

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:
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889
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.
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!