www.digitalmars.com         C & C++   DMDScript  

c++.stl - erf, erfc, and math.h

Hi folks,

I'm having a little trouble here - hope this is the right place to post. I am
used to using gcc/g++ 
under Linux and Mac OS X. This code compiles no problem under gcc:

/* --- Begin code snippet --- */

/* --- erftest.c --- */

#include <stdlib.h>
#include <math.h>

int main()
{
printf("%g\n", erf(1));
return 0;
}

/* --- end --- */

I have checked out a number of compilers for win32 and DM looks like the only
one that has the 
error and complimentary error functions defined in math.h. I need these to
complete my win32 
port. Using digital mars to compile I get:

erftest.obj(erftest)
Error 42: Symbol Undefined _erf

--- errorlevel 1


Am I doing something wrong? I'm not using STLport as it does not have erf or any
other C99 
extented functions. If these functions need to be written I would be happy to
contribute.

Brent W.
Jan 27 2004