Eclipse dark theme highlight issue

Open Window>Preferences>General>Editors>Text Editors>Annotations Modify the color for “PHP elements ‘read’ occurrences” and “PHP elements ‘write’ occurrences”. Obviously I’m using eclipse PHP but you should see similar options in the annotations list for non-PHP eclipse.

Build several CDT C++ projects from commandline

This feature has been added in CDT 6 (Final build due June 15th 2009). You can download the final release candidate from builds page: download.eclipse.org/tools/cdt/builds/6.0.0/. Using a release of Eclipse 3.5 + CDT 6, you can import, build and clean-build projects and the workspace using the following options sent to Eclipse at the command line: … Read more

Eclipse CDT shows semantic errors, but compilation is ok

Not sure if this addresses your specific problem, but I also had semantic errors. They just came out of the blue after having a working project. Anyway, I fixed it with a single option in workspace settings by setting: “Build configuration for indexer: Use active build configuration” The other option was “Use the build configuration … Read more

How to configure Eclipse CDT for cmake?

In Eclipse-CDT you do not create cmake projects but you import cmake projects. This is what you should do: Say the source of your CMake project named “Planner” is located in D:/javaworkspace/src/Planner Create a folder (the folders NEED to be parallel to each other): D:/javaworkspace/build/Planner Go to the folder D:/javaworkspace/build/Planner and run CMake using the … Read more

Enable C++11 in Eclipse CDT (Juno/Kepler/Luna) indexer [duplicate]

Note that this question (and answer) only deals with the Eclipse indexer which is used to highlight errors before compilation takes place. The C++ compiler settings are not changed! (Thus, compilation could still fail because of missing C++11 settings, but have a look at the “Related” section) To change the Eclipse indexer settings go to … Read more

Eclipse CDT using MinGW does not output in console

This worked for me on 64-bit install of Eclipse on Windows 7 using MinGW: Right-click on your project. Select “Properties”. Select the “Run/Debug Settings” Property on the left of the new window. In the right window, click on your executable to highlight (ie – Test.exe) and click “Edit”. In the Environment tab, hit “New” Name: … Read more

How to enable gdb pretty printing for C++ STL objects in Eclipse CDT?

This is the solution that works for me. Download ( http://www.gnu.org/software/gdb/download/) and install latest gdb (i.e. with –prefix $HOME). It supports python scripting. Get python pretty printers by executing svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python in a directory of your choice (i.e. $(HOME)/distribs/gdb_printers). You will get ‘python’ subdirectory in the checkout directory. Put this in your $(HOME)/.gdbinit file … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)