epsilonrt / libmodbuspp

Much more than a C++ wrapper for libmodbus
https://epsilonrt.fr/modbuspp
GNU Lesser General Public License v3.0
77 stars 44 forks source link

complation issue #24

Open Stoffels opened 2 years ago

Stoffels commented 2 years ago

Dear Sir I am using debian, and during compilation this error cropped up:

libmodbuspp/include/modbuspp/data.h:374:20: error: 'out_of_range' is not a member of 'std' 374 | throw std::out_of_range (str);

My os info is as follows: gcc version 10.2.1 20210110 (Debian 10.2.1-6) i fixed it by including the header file stdexcept to the data.h file, and thereafter the compilation had no further issues.

Regards. Stoffels