我该如何解决sfml头文件名称空间错误?

时间:2020-06-23 21:02:34

标签: c++ sfml

我启动sfml但无法成功教程 因为..

enter image description here

它说

The variable "namespace" is not a type name.
4723 error code

我该怎么办?

1 个答案:

答案 0 :(得分:2)

您正在尝试将C ++代码编译为C代码。因为namespace是C ++概念,所以会出现错误。

将文件重命名为test.cpp