WxDev standard library

Hello,

I am new to this forum and have some C++ experience, but it is quite a while ago. Due to a number of reasons, I am currently forced to translate a calculation from Mathematica to C++. To do so, I have installed WxDev as an IDE. I can compile a simple "Hello World" program, but for some reason, it seems as if I do not have access to the standard libraries. The compilation error is as follows:

0 C:\Users\Benutzer123\Documents\RPApolar\vwwp.cpp:3 In file included from vwwp.cpp:3
3 C:\Users\Benutzer123\Documents\RPApolar\vwwp.h:24 'complex' in namespace 'std' does not name a type
3 C:\Users\Benutzer123\Documents\RPApolar\vwwp.h:24 'complex' in namespace 'std' does not name a type
3 C:\Users\Benutzer123\Documents\RPApolar\vwwp.h:24 'complex' in namespace 'std' does not name a type

This is the code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
   #include <math.h> 
 #include <complex.h>
 
 using namespace std;
 
class vwwp
{
    
	public:
        
		// class constructor
		vwwp(int en);
		// class destructor
		~vwwp();
		
		std::complex<double> getvwwp(double w, double wp);
	private:
        double n, pi, kf, alpha, beta, ab, ry, mdme, epsinf, kbz, a0;
        std::complex<double> wloqa, wloqb, wtoqa, wtoqb, damp, dwdw,ktoc, kloc;
        
		std::complex<double> integrate(double a, Float b, int steps);
		double function(double u);
		double einsq();
};


Why does the compiler not find the complex type?

Thanks in advance for any help!

Best

C
The C++ standard headers don't end with .h.
1
2
#include <cmath> 
#include <complex> 
Thanks! That was it and sorry for such a ridiculous question!
Topic archived. No new replies allowed.