C++ Simulation Help on Windows

Hi,
I’m trying to run simulation with my team’s code on windows (building for roborio works as expected). I know it works on linux bases OSes, but on windows, there are repeated errors like C:\Users\USER\.gradle\caches\transforms-3\baf840c53fd4627ab9022859f35f79ce\transformed\wpimath-cpp-2023.2.1-headers\frc\kinematics\SwerveDriveKinematics.inc(179): error C2589: '(': illegal token on right side of '::' multiple times on every file.

I got around the errors for using sys/socket, arpa/inet, etc. with #ifdef statements, but I can’t figure out how to fix this issue on my own, and can’t find any discussion on the problem.

I’m grateful for any and all advice and am happy to provide more information as needed.

Thanks,
A wayward programmer

You probably need to define NOMINMAX. Windows headers without this defined will define min and max macros that break modern C++ code that uses std::min and std::max.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.