Ошибка компиляции встроенного примера modbas
Добавлено: 11 окт 2023, 14:45
При компиляции даже встроенного примера modbasSlaveRTUHardware, возникает следующая ошибка,
In file included from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.cpp:1:0:
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.h:7:7: error: redefinition of 'class FLProgUart'
class FLProgUart : public FLProgUartBasic
^~~~~~~~~~
In file included from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/flprogUartAvr.h:13:0,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/flprogUart.h:66,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/flprogUtilites.h:48,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.h:3,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.cpp:1:
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:7:7: note: previous definition of 'class FLProgUart'
class FLProgUart : public FLProgUartBasic
^~~~~~~~~~
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.cpp:4:1: error: prototype for 'FLProgUart::FLProgUart(HardwareSerial*)' does not match any in class 'FLProgUart'
FLProgUart::FLProgUart(HardwareSerial *hardwarePort)
^~~~~~~~~~
In file included from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/flprogUartAvr.h:13:0,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/flprogUart.h:66,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/flprogUtilites.h:48,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.h:3,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.cpp:1:
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:7:7: error: candidates are: constexpr FLProgUart::FLProgUart(FLProgUart&&)
class FLProgUart : public FLProgUartBasic
^~~~~~~~~~
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:7:7: error: constexpr FLProgUart::FLProgUart(const FLProgUart&)
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:11:5: error: FLProgUart::FLProgUart(uint8_t)
FLProgUart(uint8_t portNumber);
^~~~~~~~~~
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:10:5: error: FLProgUart::FLProgUart()
FLProgUart();
^~~~~~~~~~
ФлПрог последней версии.
В более ранних версиях пользовался этим протоколом без проблем.
In file included from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.cpp:1:0:
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.h:7:7: error: redefinition of 'class FLProgUart'
class FLProgUart : public FLProgUartBasic
^~~~~~~~~~
In file included from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/flprogUartAvr.h:13:0,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/flprogUart.h:66,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/flprogUtilites.h:48,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.h:3,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.cpp:1:
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:7:7: note: previous definition of 'class FLProgUart'
class FLProgUart : public FLProgUartBasic
^~~~~~~~~~
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.cpp:4:1: error: prototype for 'FLProgUart::FLProgUart(HardwareSerial*)' does not match any in class 'FLProgUart'
FLProgUart::FLProgUart(HardwareSerial *hardwarePort)
^~~~~~~~~~
In file included from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/flprogUartAvr.h:13:0,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/flprogUart.h:66,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/flprogUtilites.h:48,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.h:3,
from d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src\uart\hardwareUart\hardwareUartAVR\hardwareUartAVR.cpp:1:
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:7:7: error: candidates are: constexpr FLProgUart::FLProgUart(FLProgUart&&)
class FLProgUart : public FLProgUartBasic
^~~~~~~~~~
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:7:7: error: constexpr FLProgUart::FLProgUart(const FLProgUart&)
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:11:5: error: FLProgUart::FLProgUart(uint8_t)
FLProgUart(uint8_t portNumber);
^~~~~~~~~~
d:\FLprog_8_2\ideV8\portable\sketchbook\libraries\Flprog_Utilites\src/uart/variant/avr/hardvareUart/hardwareUartAVR.h:10:5: error: FLProgUart::FLProgUart()
FLProgUart();
^~~~~~~~~~
ФлПрог последней версии.
В более ранних версиях пользовался этим протоколом без проблем.