Exporting static data members to a DLL.

Why doesn't the code below work for clients of my dll?

The linker complains about an unresolved external Math::M_RAD_DEG. The math

class is filled with a lot of static member methods, which do not have this

problem, is there a difference between data and function exports?

Thanks,

Sytse.

//In math.h

class _declspec(dllexport) Math:

{

public:

static const double M_RAD_DEG;

...

Quote:

};

//In math.cpp

#include"Math.h"

const double Math::M_RAD_DEG = 57.2957795131;

...

//In my test app (linked with the library).

#include"Math.h"

#include<iostream.h>

int main()

{

cout<< SomeAngle * Math::M_RAD_DEG;

return cin.get();

Quote:

}