Interrupt-Driven


Eclipse CDT language mappings

Posted in C++, Eclipse by frank on the October 31st, 2009

Eclipse/CDT fails to parse some file? You don”t see anything wrong with it, neither does the compiler? Still CDT underlines parts or all of a file to mark a parse error? The most probable cause is that your file has a file extension that CDT associates with the C language, but it contains some bits of C++.

To solve this problem the CDT offers a feature called language mapping which allows you to override the default for a given file type. This can be done for a single file, for the project or for the whole workspace.

For a single file, right click on a file in the project browser -> select Properties -> C/C++ General -> Language Mappings. The dialog also offers some shortcut to do it on project or workspace level.

Adding new sites to the eclipse updater “hangs”

Posted in C++, Eclipse by frank on the March 19th, 2009

Just for the record: If adding a new site to your eclipse updater seems to hang/times out (entry is always “pending…”), its most probably not a problem with the update site itself but rather some firewall interfering. Make sure you have setup the appropriate proxies in eclipse (Window->Preferences->General->Network Connection).


FireStats icon Powered by FireStats