-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,关于代码编译问题 #1
Comments
我试图在 macOS 用 所以队长是用的啥编译器(以及版本和参数)呢? 附:
|
|
求教楼上的各位,编译问题解决了吗?我遇到了和你们一样的问题:重复定义makeclear,int强制转换 |
年代久远,不怎么记得了,你把makeplace改个名字,相应调用的地方也改一下,取整函数改成通用的语法,然后再试试。不行的话,再把数组定义全放到主函数前面。 |
建议找个别的扫雷,,, |
代码好像有点问题,在makeclear()函数那里,下面是出错警报,有空看一下呗:smile:
||=== 构建文件: "无目标" 在 "无项目" 中 (编译器: 未知的) ===|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|522|error: conflicting types for 'makeclear'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|308|note: previous definition of 'makeclear' was here|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c||In function 'randomchoice':|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|677|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c||In function 'main':|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|782|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|783|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|784|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|785|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|786|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|888|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|889|error: 'group' undeclared (first use in this function)|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|889|note: each undeclared identifier is reported only once for each function it appears in|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|907|error: 'groupsucceed' undeclared (first use in this function)|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|907|error: 'grouptime' undeclared (first use in this function)|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|907|error: 'groupclick' undeclared (first use in this function)|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|907|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|939|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|940|error: expected expression before 'int'|
C:\Users\acer\Downloads\Minesweeper-master\Minesweeper-master\main function.c|941|error: expected expression before 'int'|
||=== 构建 失败: 16 error(s), 0 warning(s) (0 分, 0 秒) ===|
The text was updated successfully, but these errors were encountered: