Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
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