I am trying to build a C program which was originally built on Linux with gcc -lm ... option, which uses the math library while linking the code. How can use the same in project settings of a Visual Studio 2005 compiler, on Win32 environment?
EDIT: Basically the original Linux code includes math.h and uses gcc -lm to link the math library. But when I use this in Windows, I get a compilation error: NAN :- undeclared identifier
.
I am looking to resolve this.