g++ 错误:无效的预处理指令#INCLUDE

1 c++ windows compiler-errors g++

我尝试在 Windows 7 下使用简单的 Hello World 程序测试 MinGW,但出现以下错误:

C:\code\helloworld.cpp:2:2: error: invalid preprocessing directive #INCLUDE
C:\code\helloworld.cpp:3:7: error: expected neested-name-specifier before 'namespace'
C:\code\helloworld.cpp:3:17: error: expected ';' before 'std'
C:\code\helloworld.cpp:3:17: error: 'std' does not name a type
C:\code\helloworld.cpp: In function 'int main()':
C:\code\helloworld.cpp:7:2: error: 'cout' was not declared in this scope
Run Code Online (Sandbox Code Playgroud)

我原来的代码如下:

//Hello, World
#INCLUDE <iostream>
using namesapce std;

int main()
{
    cout << "Hello, world!";
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

Dav*_*man 6

#include应该是小写。C++ 区分大小写。