I'm trying to compile a simple program with g++ from the command line. When I checked my laptop's PATH I see that it already includes a compiler from the Dev-C++ download: C:\Program Files (x86)\Dev-Cpp\MinGW64\bin and so I did not install anything else and tried both:
F:\demo>g++ demo2.cpp
AND
F:\demo\g++ -o demo2 demo2.cpp
and in both cases I get the error message:
g++: error: CreateProcess: No such file or directory
though when I run F:\>cd demo I can see the demo2.cpp file listed in this folder
I am wondering if the g++ from the Dev-C++ download is the issue here and if I need to remove this from the PATH and download the compiler separately and add it to the PATH. Any help, as ever, much appreciated. Thanks