Closed Ivaneus closed 5 years ago
note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
Sincerely, Zhensheng Yuan
From: Ivaneus notifications@github.com Sent: Saturday, December 8, 2018 4:59:16 AM To: yzsme/CCDGUTNetCrackerR Cc: Subscribed Subject: [yzsme/CCDGUTNetCrackerR] 最新版本编译报错 (#9)
main.c: In function 'randString': main.c:642:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (size_t n = 0; n < size; n++) { ^ main.c:642:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/yzsme/CCDGUTNetCrackerR/issues/9, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAicicXWd1arYX2Zk9pJAEgyct3OStp3ks5u2takgaJpZM4ZJIpc.
note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code Sincerely, Zhensheng Yuan … ____ From: Ivaneus notifications@github.com Sent: Saturday, December 8, 2018 4:59:16 AM To: yzsme/CCDGUTNetCrackerR Cc: Subscribed Subject: [yzsme/CCDGUTNetCrackerR] 最新版本编译报错 (#9) main.c: In function 'randString': main.c:642:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (size_t n = 0; n < size; n++) { ^ main.c:642:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code ― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#9>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAicicXWd1arYX2Zk9pJAEgyct3OStp3ks5u2takgaJpZM4ZJIpc.
我将相关代码中的str换成std仍旧报同样的错,是否因为编译环境问题,能否告知下您的编译环境
for (size_t n = 0; n < size; n++) 修改为 siaze_t n; for (n = 0; n < size; n++) 完成编译
main.c: In function 'randString': main.c:642:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (size_t n = 0; n < size; n++) { ^ main.c:642:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code