Hello, i am relatively new to the language of c/++ and chief delphi and was having some difficulties when deploying specific code to our robot. Building it poses no errors, and when it is deployed, it also shows no errors. However, the driver station reports that there is no robot code, and the RioLog was only reporting:
Robot Program Starting
NT: could not open persistent file ‘/home/lvuser/networktables.json’: no such file or directory
NT: Listening on NT3 port 1735, NT4 port 5810
Im not sure if this is due to a specific code error, but whatever may have gone wrong doesnt show up on the error list.
Has anyone else had this problem or was there something that i did wrong?
So the problem isn’t necessarily NetworkTables. Those messages get printed out any time you start robot code. Most likely, your code is crashing during startup. Unfortunately, unlike Java, C++ doesn’t provide much in terms of debugging information to the console from a crash (e.g. such as a stacktrace), so you will have to use a debugger to find the problem. One thing to try would be running your code in desktop simulation to see if it also crashes there, as it’s often easier to debug and isolate issues on desktop than doing remote debugging.
If you post a link to your code we may be able to find the problem by looking at the code, but debugging it yourself is an important skill to learn.
You can also use “WPILib: debug robot code” and then paste the error messages here. It will also be helpful if you share your code, ideally by using GitHub. It’s a lot to learn, but I agree that it will be helpful to get to the point where you can do this.
Here are the error messages i got after running the Start Debugging, im going to post a few more parts of this as the message is apparently too long for the comment thread.
Task :compileFrcUserProgramWindowsx86-64DebugExecutableFrcUserProgramCpp
RobotContainer.cpp
C:\Users\Administrator.gradle\caches\transforms-3\c20f7972df60a72ca6ca8efbf082bdf2\transformed\wpilibNewCommands-cpp-2023.4.3-headers\frc2/command/CommandPtr.h(10): fatal error C1083: Cannot open include file: ‘span’: No such file or directory
cl : Command line warning D9002 : ignoring unknown option ‘/std:c++20’
cl : Command line warning D9002 : ignoring unknown option ‘/Zc:preprocessor’
SwerveDrive.cpp
string_view is only available with C++17 or later.
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(43): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(43): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(53): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(53): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(53): error C2535: ‘void wpi::SendableRegistry::Add(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(43): note: see declaration of ‘wpi::SendableRegistry::Add’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(64): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(64): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(65): error C2535: ‘void wpi::SendableRegistry::Add(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(43): note: see declaration of ‘wpi::SendableRegistry::Add’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(74): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(74): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(75): error C2535: ‘void wpi::SendableRegistry::Add(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(43): note: see declaration of ‘wpi::SendableRegistry::Add’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(83): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(83): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(93): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(93): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(94): error C2535: ‘void wpi::SendableRegistry::AddLW(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(83): note: see declaration of ‘wpi::SendableRegistry::AddLW’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(105): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(105): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(106): error C2535: ‘void wpi::SendableRegistry::AddLW(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(83): note: see declaration of ‘wpi::SendableRegistry::AddLW’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(115): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(115): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(116): error C2535: ‘void wpi::SendableRegistry::AddLW(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(83): note: see declaration of ‘wpi::SendableRegistry::AddLW’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(174): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(174): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(184): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(184): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(185): error C2535: ‘void wpi::SendableRegistry::SetName(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(174): note: see declaration of ‘wpi::SendableRegistry::SetName’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(196): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(196): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(197): error C2535: ‘void wpi::SendableRegistry::SetName(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(174): note: see declaration of ‘wpi::SendableRegistry::SetName’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(206): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(206): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(207): error C2535: ‘void wpi::SendableRegistry::SetName(wpi::Sendable *)’: member function already defined or declared
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(174): note: see declaration of ‘wpi::SendableRegistry::SetName’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(223): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(223): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(303): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(303): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(314): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(314): error C3646: ‘name’: unknown override specifier
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(314): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(315): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\string(19): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(315): error C3646: ‘subsystem’: unknown override specifier
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(315): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(307): error C2065: ‘name_’: undeclared identifier
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(308): error C2065: ‘subsystem_’: undeclared identifier
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(309): error C2065: ‘parent_’: undeclared identifier
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(310): error C2065: ‘data_’: undeclared identifier
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(311): error C2065: ‘builder_’: undeclared identifier
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(311): error C2439: ‘wpi::SendableRegistry::CallbackData::data’: member could not be initialized
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(317): note: see declaration of ‘wpi::SendableRegistry::CallbackData::data’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(311): error C2439: ‘wpi::SendableRegistry::CallbackData::builder’: member could not be initialized
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(318): note: see declaration of ‘wpi::SendableRegistry::CallbackData::builder’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(307): error C2614: ‘wpi::SendableRegistry::CallbackData’: illegal member initialization: ‘name’ is not a base or member
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/sendable/SendableRegistry.h(308): error C2614: ‘wpi::SendableRegistry::CallbackData’: illegal member initialization: ‘subsystem’ is not a base or member
C:\Users\Administrator.gradle\caches\transforms-3\b5573e1fbe4a9de2bc3bb3e55698c86c\transformed\wpilibc-cpp-2023.4.3-headers\frc/SPI.h(10): fatal error C1083: Cannot open include file: ‘span’: No such file or directory
cl : Command line warning D9002 : ignoring unknown option ‘/std:c++20’
cl : Command line warning D9002 : ignoring unknown option ‘/Zc:preprocessor’
CMD_DefaultDrive.cpp
C:\Users\Administrator.gradle\caches\transforms-3\c20f7972df60a72ca6ca8efbf082bdf2\transformed\wpilibNewCommands-cpp-2023.4.3-headers\frc2/command/CommandBase.h(8): fatal error C1083: Cannot open include file: ‘span’: No such file or directory
cl : Command line warning D9002 : ignoring unknown option ‘/std:c++20’
cl : Command line warning D9002 : ignoring unknown option ‘/Zc:preprocessor’
Shooter.cpp
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(593): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(619): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(721): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(1531): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(1726): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(1866): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2417): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2439): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2463): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2522): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2523): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(3058): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(3072): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(3439): error C2429: language
feature ‘nested-namespace-definition’ requires compiler flag ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/voltage.h(48): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\290b82d183bd9a8870c0b518cb3efa94\transformed\tools-sim-23.0.12-headers\ctre/phoenix/platform/Platform.hpp(75): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\set(18): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\290b82d183bd9a8870c0b518cb3efa94\transformed\tools-sim-23.0.12-headers\ctre/phoenix/platform/Platform.hpp(75): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\290b82d183bd9a8870c0b518cb3efa94\transformed\tools-sim-23.0.12-headers\ctre/phoenix/platform/Platform.hpp(76): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\set(18): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\290b82d183bd9a8870c0b518cb3efa94\transformed\tools-sim-23.0.12-headers\ctre/phoenix/platform/Platform.hpp(76): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\9f1e9dbbe023c35ece55c5e3e64aa487\transformed\cci-sim-5.30.4-headers\ctre/phoenix/cci/Platform_CCI.h(14): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\set(18): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\9f1e9dbbe023c35ece55c5e3e64aa487\transformed\cci-sim-5.30.4-headers\ctre/phoenix/cci/Platform_CCI.h(14): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\9f1e9dbbe023c35ece55c5e3e64aa487\transformed\cci-sim-5.30.4-headers\ctre/phoenix/cci/Platform_CCI.h(15): error C2039: ‘string_view’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\set(18): note: see declaration of ‘std’
C:\Users\Administrator.gradle\caches\transforms-3\9f1e9dbbe023c35ece55c5e3e64aa487\transformed\cci-sim-5.30.4-headers\ctre/phoenix/cci/Platform_CCI.h(15): error C2061: syntax error: identifier ‘string_view’
C:\Users\Administrator.gradle\caches\transforms-3\c20f7972df60a72ca6ca8efbf082bdf2\transformed\wpilibNewCommands-cpp-2023.4.3-headers\frc2/command/CommandPtr.h(10): fatal error C1083: Cannot open include file: ‘span’: No such file or directory
cl : Command line warning D9002 : ignoring unknown option ‘/std:c++20’
cl : Command line warning D9002 : ignoring unknown option ‘/Zc:preprocessor’
Robot.cpp
class template optional is only available with C++17 or later.
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(593): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(619): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(721): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(1531): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(1726): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(1866): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2417): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2439): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2463): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2522): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(2523): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(3058): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(3072): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/base.h(3439): error C2429: language
feature ‘nested-namespace-definition’ requires compiler flag ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/angle.h(52): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/math.h(45): error C2429: language feature ‘nested-namespace-definition’ requires compiler flag ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\1b6c81aea3f4f3344919e14e973a4f7d\transformed\wpimath-cpp-2023.4.3-headers\units/time.h(53): error C7525: inline variables require at least ‘/std:c++17’
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/priority_queue.h(68): warning C5051: attribute ‘nodiscard’ requires at least ‘/std:c++17’; ignored
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/priority_queue.h(111): note: see reference to class template instantiation ‘wpi::priority_queue<T,Sequence,Compare>’ being compiled
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\chrono(595): note: see reference to class template instantiation ‘std::chrono::duration>’ being compiled
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\chrono(172): note: see reference to class template instantiation ‘std::chrono::duration<__int64,std::nano>’ being compiled
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\chrono(574): note: see reference to class template instantiation ‘std::chrono::time_pointstd::chrono::steady_clock,std::chrono::steady_clock::duration’ being compiled
C:\Users\Administrator.gradle\caches\transforms-3\c0c6198fbf3c4c7410e80a60a213d569\transformed\wpiutil-cpp-2023.4.3-headers\wpi/Synchronization.h(11): fatal error C1083: Cannot open include file: ‘span’: No such file or directory
cl : Command line warning D9002 : ignoring unknown option ‘/std:c++20’
cl : Command line warning D9002 : ignoring unknown option ‘/Zc:preprocessor’
Task :compileFrcUserProgramWindowsx86-64DebugExecutableFrcUserProgramCpp FAILED
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileFrcUserProgram).
Check that all your files are saved, then scroll up in this log for more information.
Edit: after some time, the problem was revealed to be something going critically wrong with commandscheduler and defaultdrivecommand. Thanks for the help though!