I am writing a program using complex numbers. By #including the <complex> library in my .cpp file I can work with it just fine. If I want to define a function in a header file like this:

int Matrixmult((complex<double>)* , (complex<double>)* , (complex<double>)* );

I get an error C2065: 'complex': undeclared identifier. I don't really understand this because I have #included the <complex> library before the header file in my .cpp file:

#include <complex>
#include <iostream>
#include <fstream>
#include <string>
#include <functions_refl.h>

where the last one is my header file.