开发者

Eclipse CDT Console does not link to code for compilation errors

开发者 https://www.devze.com 2022-12-28 00:48 出处:网络
I\'m using Eclipse for my C++ project under Linux. When I get compilation errors I can see 开发者_如何学编程them in the Console window.

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?


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: How do I add an Error Parser (or The project seems to build file, but doesn't parse my error output what can I do?)

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消