ed-chemnitz / qmodbus

GNU General Public License v2.0
274 stars 126 forks source link

cant execute make #38

Open Wailshire opened 1 year ago

Wailshire commented 1 year ago

hello, im trying to install but i get the following error:

../src/BatchProcessor.cpp: In member function ‘void BatchProcessor::runBatch()’: ../src/BatchProcessor.cpp:137:154: error: ‘endl’ is not a member of ‘Qt’ 137 | " << sendModbusRequest( slaveID, func, addr.toInt() ) << Qt::endl;

any idea how to fix this?

shiftee commented 1 year ago

It would seem Qt::endl has been deprecated. Try replacing all occurrences with "\n" or std::endl to make the build succeed

fbrisa commented 1 year ago

It worked using "\n" as you suggested