In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:4: In file included from ./ppmdu/pmd2/game_stats.hpp:13: ./ppmdu/pmd2/pmd2.hpp:58:14: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . [-W#pragma-messages] :major(maj), minor(min),patch(ptch) ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/sysmacros.h:101:21: note: expanded from macro 'major' # define major(dev) __SYSMACROS_DM (major) gnu_dev_major (dev) ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/sysmacros.h:52:32: note: expanded from macro '__SYSMACROS_DM' #define __SYSMACROS_DM(symbol) __SYSMACROS_DM1 \ ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/sysmacros.h:62:30: note: expanded from macro '__SYSMACROS_DM1' #define __SYSMACROS_DM1(...) __glibc_macro_warning (#__VA_ARGS__) ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/cdefs.h:470:3: note: expanded from macro '__glibc_macro_warning' __glibc_macro_warning1 (GCC warning message) ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/cdefs.h:468:42: note: expanded from macro '__glibc_macro_warning1' # define __glibc_macro_warning1(message) _Pragma (#message) ^ :308:6: note: expanded from here GCC warning "In the GNU C Library, \"major\" is defined\n by . For historical compatibility, it is\n currently defined by as well, but we plan to\n remove this soon. To use \"major\", include \n directly. If you did not intend to use a system-defined macro\n \"major\", you should undefine it after including ." ^ In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:4: In file included from ./ppmdu/pmd2/game_stats.hpp:13: ./ppmdu/pmd2/pmd2.hpp:58:26: warning: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . [-W#pragma-messages] :major(maj), minor(min),patch(ptch) ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/sysmacros.h:102:21: note: expanded from macro 'minor' # define minor(dev) __SYSMACROS_DM (minor) gnu_dev_minor (dev) ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/sysmacros.h:52:32: note: expanded from macro '__SYSMACROS_DM' #define __SYSMACROS_DM(symbol) __SYSMACROS_DM1 \ ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/sysmacros.h:62:30: note: expanded from macro '__SYSMACROS_DM1' #define __SYSMACROS_DM1(...) __glibc_macro_warning (#__VA_ARGS__) ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/cdefs.h:470:3: note: expanded from macro '__glibc_macro_warning' __glibc_macro_warning1 (GCC warning message) ^ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/cdefs.h:468:42: note: expanded from macro '__glibc_macro_warning1' # define __glibc_macro_warning1(message) _Pragma (#message) ^ :2:6: note: expanded from here GCC warning "In the GNU C Library, \"minor\" is defined\n by . For historical compatibility, it is\n currently defined by as well, but we plan to\n remove this soon. To use \"minor\", include \n directly. If you did not intend to use a system-defined macro\n \"minor\", you should undefine it after including ." ^ In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:4: In file included from ./ppmdu/pmd2/game_stats.hpp:13: ./ppmdu/pmd2/pmd2.hpp:58:14: error: member initializer 'gnu_dev_major' does not name a non-static data member or base class :major(maj), minor(min),patch(ptch) ^~~~~~~~~~ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/sysmacros.h:101:44: note: expanded from macro 'major' # define major(dev) __SYSMACROS_DM (major) gnu_dev_major (dev) ^~~~~~~~~~~~~~~~~~~ In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:4: In file included from ./ppmdu/pmd2/game_stats.hpp:13: ./ppmdu/pmd2/pmd2.hpp:58:26: error: member initializer 'gnu_dev_minor' does not name a non-static data member or base class :major(maj), minor(min),patch(ptch) ^~~~~~~~~~ /nix/store/1x16czv927s1pfflj6s0lnx343n02ib4-glibc-2.27-dev/include/sys/sysmacros.h:102:44: note: expanded from macro 'minor' # define minor(dev) __SYSMACROS_DM (minor) gnu_dev_minor (dev) ^~~~~~~~~~~~~~~~~~~ In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:4: In file included from ./ppmdu/pmd2/game_stats.hpp:16: In file included from ./ppmdu/containers/pokemon_stats.hpp:10: In file included from ./ppmdu/pmd2/pmd2_text.hpp:8: ./ppmdu/pmd2/pmd2_configloader.hpp:561:29: error: no member named 'numeric_limits' in namespace 'std' return std::numeric_limits::max(); ~~~~~^ ./ppmdu/pmd2/pmd2_configloader.hpp:561:44: error: unexpected type name 'size_t': expected expression return std::numeric_limits::max(); ^ ./ppmdu/pmd2/pmd2_configloader.hpp:561:53: error: no member named 'max' in the global namespace return std::numeric_limits::max(); ~~^ In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:4: In file included from ./ppmdu/pmd2/game_stats.hpp:16: In file included from ./ppmdu/containers/pokemon_stats.hpp:11: In file included from ./utils/utility.hpp:12: ./utils/gbyteutils.hpp:273:42: error: expected a qualified name after 'typename' dest = ReadIntFromBytes( itin, itend, basLittleEndian ); ^ ./utils/gbyteutils.hpp:273:54: error: expected a qualified name after 'typename' dest = ReadIntFromBytes( itin, itend, basLittleEndian ); ^ ./utils/gbyteutils.hpp:339:36: error: use of undeclared identifier 'pow' T mask = static_cast( ( pow( 2, nbBits ) - 1u ) ); //Subtact one to get the correct mask ^ ./utils/gbyteutils.hpp:440:19: error: use of undeclared identifier 'runtime_error' throw runtime_error("String went past expected end!"); ^ ./utils/gbyteutils.hpp:458:19: error: use of undeclared identifier 'runtime_error' throw runtime_error("String went past expected end!"); ^ ./utils/gbyteutils.hpp:473:9: error: unknown type name 'string'; did you mean 'std::string'? string dest; ^~~~~~ std::string /nix/store/348bgpalbgx8kyg6bqr24f45dzqhp9pf-gcc-7.4.0/include/c++/7.4.0/bits/stringfwd.h:74:33: note: 'std::string' declared here typedef basic_string string; ^ In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:5: In file included from ./ppmdu/pmd2/pmd2_gameloader.hpp:16: In file included from ./ppmdu/pmd2/pmd2_scripts.hpp:11: ./ppmdu/containers/script_content.hpp:161:9: warning: conversion function converting 'pmd2::ScriptInstruction' to its base class 'pmd2::ScriptBaseInstruction' will never be used operator ScriptBaseInstruction()const ^ In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:5: In file included from ./ppmdu/pmd2/pmd2_gameloader.hpp:16: ./ppmdu/pmd2/pmd2_scripts.hpp:110:48: error: unknown type name 'ScrSetLoader'; did you mean 'ScriptLayer'? typedef std::unordered_map evindex_t; ^~~~~~~~~~~~ ScriptLayer ./ppmdu/containers/script_content.hpp:329:12: note: 'ScriptLayer' declared here struct ScriptLayer ^ In file included from statsutil.cpp:1: In file included from ./statsutil.hpp:5: In file included from ./ppmdu/pmd2/pmd2_gameloader.hpp:16: ./ppmdu/pmd2/pmd2_scripts.hpp:158:25: error: use of undeclared identifier 'GameScriptsHandler' std::unique_ptr m_pHandler; ^ In file included from statsutil.cpp:11: In file included from ./ppmdu/pmd2/pmd2_xml_sniffer.hpp:18: ./utils/pugixml_utils.hpp:23:5: warning: '/*' within block comment [-Wcomment] /***************************************************************************************/ ^ ./utils/pugixml_utils.hpp:40:5: warning: '/*' within block comment [-Wcomment] /***************************************************************************************/ ^ ./utils/pugixml_utils.hpp:94:5: warning: '/*' within block comment [-Wcomment] /***************************************************************************************/ ^ statsutil.cpp:418:28: warning: parentheses were disambiguated as redundant parentheses around declaration of variable named 'optdata' [-Wvexing-parse] std::locale( optdata[1] ); ^~~~~~~~~~~~~~ statsutil.cpp:418:28: note: add a variable name to declare a 'std::locale' initialized with 'optdata' std::locale( optdata[1] ); ^ varname statsutil.cpp:418:17: note: add enclosing parentheses to perform a function-style cast std::locale( optdata[1] ); ^ ( ) statsutil.cpp:418:28: note: remove parentheses to silence this warning std::locale( optdata[1] ); ^ ~ statsutil.cpp:765:24: warning: enumeration value 'None' not handled in switch [-Wswitch] switch(m_force) ^ statsutil.cpp:793:24: warning: 18 enumeration values not handled in switch: 'Invalid', 'ImportPokemonData', 'ExportPokemonData'... [-Wswitch] switch(m_operationMode) ^ statsutil.cpp:812:24: warning: 16 enumeration values not handled in switch: 'Invalid', 'ImportPokemonData', 'ExportPokemonData'... [-Wswitch] switch(m_operationMode) ^ 10 warnings and 13 errors generated.