Trying to use complex.h classes, some keyword is hiding it
I'm trying to implement a calculation which involves a sqare root and therefore has the possibility of becoming a complex number. I found that C++ has a standard complex number class which would work rather well, with multiplication and all. The only problem is somehow another keyword called complex is hiding the implementation, even when I try to use "std::complex" it says this error.
Anyone know how I can solve this?
error: `complex' undeclared (first use this function)
error: (Each undeclared identifier is reported only once for each function it appears in.)
error: expected `;' before "a"