easyX运行不了

-1

重新创建还是一摸一样的错。 是这个“HWND initgraph(int* gdriver, int* gmode, char* path);”中给出了错误

错误分别是这三个:

error C2146: syntax error : missing ';' before identifier 'initgraph'

error C2501: 'HWND' : missing storage-class or type specifiers

fatal error C1004: unexpected end of file found

我在别人机子上试过了,一样的代码别人的可以运行,我的运行不了。easyX下的也是一样的版本

ava

2020-1-1

修改你的问题,补充详细。比如,你用的什么系统、什么版本的 vs、什么版本的 easyx、完整代码等等。你说的这么简单,谁也帮不了你。 -  慢羊羊  2020-1-2
0

问题解决了   是编译环境设置的问题。。在VC的setting里选择c/c++选项 选择里面的Preprocessor 里面加上了

ava
xiongfj ◑◑

2020-3-20

技术讨论社区
相关提问