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.