ability-hand-api icon indicating copy to clipboard operation
ability-hand-api copied to clipboard

Cannot build on Windows due to `autoconnect_serial` in `winserial.h` missing an argument

Open TomaszTB opened this issue 2 months ago • 0 comments

PR #58 added an argument to the autoconnect_serial function for Linux but did not add the argument to the equivalent function for Windows. Now running cmake --build build in the cpp directory on Windows results in the following error:

C:\Users\tbialek\ihmc\ability-hand-api\cpp\ah_wrapper\src\wrapper.cpp(29,7): error C2660: 'autoconnect_serial': function does not take 2 arguments [C:\Users\tbialek\ihmc\ability-hand-api\cpp\build\ah_wrapper\ah_wrapper.vcxproj]
      C:\Users\tbialek\ihmc\ability-hand-api\cpp\ah_wrapper\include\winserial.h(8,5):
      see declaration of 'autoconnect_serial'
      C:\Users\tbialek\ihmc\ability-hand-api\cpp\ah_wrapper\src\wrapper.cpp(29,7):
      while trying to match the argument list '(const uint32_t, const char *)'

TomaszTB avatar Nov 07 '25 23:11 TomaszTB