Linking Error at 98% compiling cocos2d-x cpp

Hi everyone. I am trying to compile using NetBeans 8.0.2 in Kubuntu 15.04 and I get some linking errors:

[ 98%] Building CXX object CMakeFiles/MyGame.dir/proj.linux/main.cpp.o
Linking CXX executable bin/MyGame
/usr/bin/ld: lib/libcocos2d.a(CCActionInterval.cpp.o): undefined reference to symbol ‘powf@@GLIBC_2.2.5’
/lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/MyGame.dir/build.make:159: recipe for target ‘bin/MyGame’ failed
make[2]: *** [bin/MyGame] Error 1
CMakeFiles/Makefile2:64: recipe for target ‘CMakeFiles/MyGame.dir/all’ failed
make[1]: *** [CMakeFiles/MyGame.dir/all] Error 2
Makefile:76: recipe for target ‘all’ failed
make: *** [all] Error 2

MAKE FAILED (exit value 2, total time: 22m 6s)

Does anyone know what’s going on?

Thanks.

Looks like ‘powf’ function is missing. I guess you have a wrong version of ‘glibc’.

ldd (Ubuntu GLIBC 2.21-0ubuntu4) 2.21
Copyright © 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

What is the right one?