Eclipse CDT-输出 - 使用VS编译器时无用

Eclipse CDT - Output - when using vs compiler not helpful

本文关键字:编译器 无用 VS 使用 CDT- 输出 Eclipse      更新时间:2023-10-16

i使用eclipse cdt(juno release),我一直在尝试看到像我们在Visual Studio中一样的编译时的错误输出。

相反,"问题"视图似乎在使我们看到编译器错误时非常有限(使用与Visual Studio相同的编译器)。

一个简单的示例。如果您有一个简单的错字

typedef std::function(void(int)) Func;

vs输出立即显示:

    error C2955: 'std::function' : use of class template requires template argument list
1>          c:program files (x86)microsoft visual studio 11.0vcincludefunctional(554) : see declaration of 'std::function'

通过比较,在CDT下使用相同的编译器,我会在完全不同的代码行中获取错误,其中大部分在未在原始位置使用错误定义的Typedef的区域。至少可以在其他窗口中看到"原始编译器输出",以便对正在发生的事情有一个线索?

对于编译器输出,您必须检查 console 选项卡。这是放置在问题右侧的选项卡之一您所在的选项卡。