When attempting to create a .h file in order to store a class such as in the example below:
#ifndef TRIANGLE64_H
#define TRIANGLE64_H
class Triangle64{
public:
Triangle64();
double getArea();
void destroy(); //Frees the allocated memory
private:
//Variables reflecting the properties of the triangle
double Base;
int N_ulps;
double s;
double Area;
};
#endif
I am returned with the error:
This version of C:\Users\ezio1\AppData\Local\Temp\Triangle64.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
Which seems quite strange as I am not attempting to make a .exe file from this code (and for completeness I am also running Windows 10 with the gcc compiler).
I have also tried ignoring the error message and attempted to create a class file from the header:
#include "Triangle64.h"
//Constructor
Triangle64::Triangle64(){
}
However, the code does not even run this time and I am returned with the error message
c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16' collect2.exe: error: ld returned 1 exit status
Could this be a result of an issue with my installation of the compiler or perhaps something to do with the OS?