The linkage under Linux is incomplete. This can be demonstrated with ldd -r gamex86_64.so which shows the math library functions are not linked. When linking, binding to the math lib and lib loader needs to be added using the -lm and -ldl switches. This is accomplished by adding link_libraries(dl m) to the CMakeLIsts.txt to explicitly link to them.
The linkage under Linux is incomplete. This can be demonstrated with ldd -r gamex86_64.so which shows the math library functions are not linked. When linking, binding to the math lib and lib loader needs to be added using the -lm and -ldl switches. This is accomplished by adding
link_libraries(dl m)
to the CMakeLIsts.txt to explicitly link to them.