You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just trying to bring all the changes in group 4's repo to hexactinal/main, but I ran into this compiler error:
PS C:\Users\jacev\github\cse_491_fall_2023\build> cmake --build . --target test-unit-worlds-Language
[ 94%] Built target Catch2
[ 97%] Built target Catch2WithMain
[ 97%] Building CXX object tests/unit/Worlds/CMakeFiles/test-unit-worlds-Language.dir/Language.cpp.obj
In file included from C:/msys64/mingw64/include/windows.h:71,
from C:/Users/jacev/github/cse_491_fall_2023/third_party/PEGTL/include/tao/pegtl/internal/mmap_file_win32.hpp:2
from C:/Users/jacev/github/cse_491_fall_2023/third_party/PEGTL/include/tao/pegtl/internal/mmap_file.hpp:15,
from C:/Users/jacev/github/cse_491_fall_2023/third_party/PEGTL/include/tao/pegtl/mmap_input.hpp:16,
from C:/Users/jacev/github/cse_491_fall_2023/third_party/PEGTL/include/tao/pegtl/file_input.hpp:17,
from C:/Users/jacev/github/cse_491_fall_2023/third_party/PEGTL/include/tao/pegtl.hpp:28,
from C:/Users/jacev/github/cse_491_fall_2023/source/Worlds/Language.hpp:9,
from C:\Users\jacev\github\cse_491_fall_2023\tests\unit\Worlds\Language.cpp:14:
C:/Users/jacev/github/cse_491_fall_2023/source/core/EasyLogging.hpp:14:45: error: expected identifier before numeric constant
14 | enum class LogLevel { DEBUG, INFO, WARNING, ERROR, NA };
| ^~~~~
C:/Users/jacev/github/cse_491_fall_2023/source/core/EasyLogging.hpp:14:45: error: expected '}' before numeric constant
// more compiler errors omitted
I think that this may be due to ERROR being a predefined macro on Windows, although I could be wrong. I did a find-and-replace from LogLevel::ERROR to LogLevel::ERR and this seemed to work, but you might want to test this on other operating systems before incorporating into the class branch.
The text was updated successfully, but these errors were encountered:
I was just trying to bring all the changes in group 4's repo to hexactinal/main, but I ran into this compiler error:
I think that this may be due to
ERROR
being a predefined macro on Windows, although I could be wrong. I did a find-and-replace fromLogLevel::ERROR
toLogLevel::ERR
and this seemed to work, but you might want to test this on other operating systems before incorporating into the class branch.The text was updated successfully, but these errors were encountered: