c++ - eclipse C++ : The word 'printf' is not correctly spelled

标签 c++ eclipse

我正在尝试在 Windows 7 中使用 Eclipse 创建我的第一个 C++ 可执行程序。

#include <stdio.h>
int main( int argc, const char* argv[] )
{
printf( "arg" );
}

我收到错误:

" The word 'printf' is not correctly spelled".

以下是我的配置。如何克服这个错误?

enter image description here

enter image description here

enter image description here

最佳答案

您似乎没有为您的 C++ 源代码提供一个被识别为标准 C++ 文件扩展名的扩展名。

能否将您的文件重命名为 ma​​in.cpp 以便 eclipse 相应地处理它?<​​/p>

关于c++ - eclipse C++ : The word 'printf' is not correctly spelled,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11710325/

相关文章:

eclipse - 使用 Eclipse UI 运行插件更新

java - 错误: "Some projects cannot be imported because they already exist in the workspace" when i tried to import SWT to Eclipse

c++ - 使用 QT/C++ 中的 DBUS 连接到新的 Bluez HDP 插件

c++ - std::deque<std::string> 有效计算内存中的大小

c++ - 如何在 C++ 和 QT 的另一个窗口中显示主窗口的结果图像?

c++ - FILE* 无处可去

java - 在 Maven 中测试地理转换失败,在 Eclipse 中有效

c++ - 如何构建这个节点树?

java - 如何在android中为 ListView 提供边框

java - Fedora Eclipse - io 流中的空字符