math library linking errors

I am trying to build a lib file from the SimpleMultiCopy CUDA sample that i can then use in a legacy C project that is compiled with LabWindows/CVI.

I have modified the example to be pure C by removing dependency on the helper function headers by copy pasting the functions in to the main .cu source file, and enclosing the entire file in extern “C” { … }

I Set the project type in VS2010 to static library and disabled Whole program optimisation in the configuration properties

In the CVI project, I added the 64bit versions of cuda.lib and cudart.lib, and my newly generated simpleMultiCopy.lib( 64-bit)

I tried to build the project in CVI and get the following errors.

20 Project link errors
Undefined symbol ‘acosf’ referenced in “simpleMultiCopy.lib”.
Undefined symbol ‘asinf’ referenced in “simpleMultiCopy.lib”.
Undefined symbol ‘atanf’ referenced in “simpleMultiCopy.lib”.
Undefined symbol ‘atan2f’ referenced in “simpleMultiCopy.lib”.
Undefined symbol ‘ceilf’ referenced in “simpleMultiCopy.lib”.
.
. all of them are math functions.
.
Undefined symbol ‘tanhf’ referenced in “simpleMultiCopy.lib”.
Undefined symbol ‘__iob_func’ referenced in “simpleMultiCopy.lib”.
which math library should be added to the project to help it find those definitions? Is there an option in VS2010 to bake that dependency into the lib file it generates?