I have a Windows8 machine with mingw installed in c: \ mingw Eclipse successfully compiles programs, but considers the lines to contain errors that are good when compiling. Eclipse does not find the libraries themselves.
When I first create a project in eclipse with the installation of the CDT components, it shows errors in every #include and every line using the object.
Example:
#include <iostream> using namespace std; int main() { cout << "hello\n"; }
The above code shows errors in include, use and cout <line. I can get rid of the errors by clicking: project-> C ++ properties / General preprocessor Enable Then on the “Providers” tab I can check the “CDT assembly output parser” and fix the errors as described in the first answer below, which I check. But this only works for the project. I have to do it every time. How can I make eclipse just accept standard C ++ EVERY TIME I create a new project without reconfiguring each project?
I was able to stop errors on startup by going to the project settings and adding directories:
c: / bin / MinGW / Library / GCC / enable ...
This leaves line errors using objects.
#include <iostream> #include <string> #include <regex> using namespace std; int main() { string s = "this is a test."; regex e("est"); smatch m;
The regex line still shows an error: “regex type cannot be resolved” even if compilation of the code and inclusion of the regex are recognized.
In addition, on a different machine running Windows 8.1 with Mingw installed, eclipse will not debug. Is there any document on how to connect the Eclipse CDT to the library?
source share