views:

142

answers:

1

I'm using Eclipse for my C++ project under Linux. When I get compilation errors I can see them in the Console window.

I am currently manually navigating to the file and line number to fix errors. Is is possible to get Eclipse to provide links to the correct file and line number?

+1  A: 

You may need to configure Eclipse to parse the errors emitted by your compiler to allow it to extract the file name and line number.

The CDT FAQ has some more info:

http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_add_an_Error_Parser_.28or_The_project_seems_to_build_file.2C_but_doesn.27t_parse_my_error_output_what_can_I_do.3F.29

Note Eclipse CDT should be set up for GCC out of the box. Just noticed you mention you're looking at the Console View. Have you tried looking at the Problem View - this should show a list of Errors & Warnings, where you can double-click each item to jump the file and line in question.

jon hanson