Eclipse CDT Console does not reference code for compilation errors

I am using Eclipse for my C ++ project on Linux. When I get compilation errors, I see them in the console window.

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

+7
c ++ eclipse-cdt
source share
1 answer

You may need to configure Eclipse to analyze the errors emitted by your compiler so that it can extract the file name and line number.

There is additional information in the CDT FAQ: How to add an error analyzer (or does the project seem to be creating a file, but it does not analyze my error, what can I do?)

Note. Eclipse CDT must be configured for GCC out of the box. Just noticed that you mention that you are looking at the console view. You tried to look at the Problem view - this should show a list of Errors and Warnings, where you can double-click each item to scan the file and the line in question.

+5
source share

All Articles