Change floats to doubles to solve linker issues.