alejoseb/Modbus-PI-Pico-FreeRTOS

Error while compiling

darosacezar opened this issue · 1 comments

I am trying to compile your Modbus library as well as the example given, but I am getting the following error:
multiple definition of `mHandlers'; CMakeFiles/hello_world.dir/src/main.cpp.obj:C:\Users\user\Documents\Pico\Modbus-PI-Pico-FreeRTOS\MODBUS-LIB\Inc/Modbus.h:286: first defined here
collect2.exe: error: ld returned 1 exit status
Can you help me with it?

Hi, please pull the latest commit it should compile without issues now.