Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - cmath gives error: (1 Item)
   
cmath gives error  
Hi!

I'm trying to compile the following program using QNX momentics

#include <cstdlib>
#include <iostream>
#include <cmath>

int main(int argc, char *argv[]) {
	int a=std::pow(2,4);
	return EXIT_SUCCESS;
}

However, I recieve the following error:

math.h: undefined reference to ` pow'

What am I doing wrong? 

Thankful for your help.

Best Regards
Hugo