Compile error - syntax errors
Im able to compile the source code for version 9200 but this most recent source code (9236), it's having issues.
I looked on the docs site to see if I missed something, somewhere between the two, but nothing stood out. I did notice a similiar issue posted on github about a couple weeks ago. With the 9236 build, I am getting these 3 errors (each) repeatedly, for MOST of the files it tries to compile. (16,371 errors total) Error C2059 syntax error: ',' Error C2143 syntax error: missing ';' before '{' Error C2447 '{': missing function header (old-style formal list?) Eventually for every compile, it spits out this: fatal error C1003: error count exceeds 100; stopping compilation ========== Build: 14 succeeded, 10 failed, 0 up-to-date, 0 skipped ========== Im using VS 2017 (with latest update 15.9.57) and Cmake 3.27.6 I've updated everything I could on my end, today and even re-pulled the source code from github again. But from the version 9200 source compile today, all was (still) successful: 24>------ Build started: Project: ALL_BUILD, Configuration: RelWithDebInfo x64 ------ 24>Building Custom Rule D:/source/CMakeLists.txt ========== Build: 24 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== thanks for any help if there is any. |
Same Issue
I'm getting what seems like the exact same issue. For additional info, basically all error lines are like this:
10>c:\(account folder)\common\repositories/command_subsettings_repository.h(80): error C2143: syntax error: missing ';' before '{' (compiling source file C:\(account folder)\zone\spawngroup.cpp) The .cpp file changes (e.g., spawngroup or spell_effects) but the "command_subsettings_repository.h" is the same for every error I can see. The lines (e.g., 80 above) iterate between 51 and 84. It does 3 errors for each code line: "error C2143: syntax error: missing ';' before '{'" "error C2447: '{': missing function header (old-style formal list?)" "error C2059: syntax error: ','" That gives it the 100 errors to quit that file and move to the next. I assume that it's either my compiler not reading it properly or some missing syntax causing cascading issues but I would appreciate any insight. |
Fixed - Visual Studio 2019
In case anyone finds this in the future - I fixed my issue by uninstalling Visual Studio 2017 and using Visual Studio 2019 instead.
|
Since you're upgrading, just jump straight to VS22
|
All times are GMT -4. The time now is 03:43 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.