I have a Windows8 machine with mingw installed in c:\mingw Eclipse does successfully compile programs, but it considers lines to contain errors that are fine when compiled. Eclipse is not finding the libraries itself.
When I first build a project in eclipse with the CDT components install, it shows errors on every #include and every line using an object.
Example:
#include <iostream>
using namespace std;
int main() {
cout << "hello\n";
}
The above code shows errors on the include, the using and the cout << line. I can get rid of the errors by clicking: project->properties C++/General Preprocessor Include Then on the providers tab, I can check off "CDT Build output parser" and fix the mistakes as described by the first answer below, which I am upchecking. But this only works for the project. I have to do this every time. How can I get eclipse to simply accept standard C++ EVERY TIME I build a new project without reconfiguring each project?
I have been able to stop errors on the includes by going into project settings and adding the directories:
c:/bin/mingw/lib/gcc/include ...
That leaves the errors on lines using the objects.
#include <iostream>
#include <string>
#include <regex>
using namespace std;
int main() {
string s = "this is a test.";
regex e("est");
smatch m;
The line with regex still shows an error: "type regex could not be resolved" even though the code compiles and the regex include is recognized.
Additionally, on a different machine running windows 8.1 with Mingw installed, eclipse will not debug. Is there some document on how to connect Eclipse CDT to the library?