¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: @G8BPQ -- UZ7HO soundmodem for linux


 

This error is caused by an incompatibility in recent versions of gcc. This should fix it.



73,
John

On 08/06/2022 16:07, hartje wrote:
Dear John,

as I didnot found your email otherwise, I hopefully can get in contact this way.

Thanks for that port of the UZ7HO-modem (beta)

So let me assist to improve it.

First I send you my compile errors...

I tried to compile your actual port of the UZ7HO-Soundmodem on Ubuntu 2204

with

g++ --version
g++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

but got errors after qmake and than during execution of make


---------------------------------------------------------------------------------------------------------------------------------


$ make
g++ -c -pipe -g -fno-common -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtSerialPort -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o ShowFilter.o ShowFilter.cpp
In file included from ShowFilter.cpp:23:
UZ7HOStuff.h:155:14: error: unnamed scoped enum is not allowed
? 155 | #define byte unsigned char //????????????????? 0 to 255
????? |????????????? ^~~~~~~~
UZ7HOStuff.h:155:14: error: expected identifier before ¡®unsigned¡¯
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:46,
???????????????? from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
???????????????? from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:43,
???????????????? from /usr/include/x86_64-linux-gnu/qt5/QtGui/QPainter:1,
???????????????? from ShowFilter.cpp:24:
/usr/include/c++/11/cstddef:69:19: error: expected unqualified-id before ¡®:¡¯ token
?? 69 |?? enum class byte : unsigned char {};
/usr/include/c++/11/cstddef:134:3: error: ¡®constexpr unsigned char std::operator|(unsigned char, unsigned char)¡¯ must have an argument of class or enumerated type
? 134 |?? operator|(byte __l, byte __r) noexcept
????? |?? ^~~~~~~~
/usr/include/c++/11/cstddef:138:3: error: ¡®constexpr unsigned char std::operator&(unsigned char, unsigned char)¡¯ must have an argument of class or enumerated type
? 138 |?? operator&(byte __l, byte __r) noexcept
????? |?? ^~~~~~~~
/usr/include/c++/11/cstddef:142:3: error: ¡®constexpr unsigned char std::operator^(unsigned char, unsigned char)¡¯ must have an argument of class or enumerated type
? 142 |?? operator^(byte __l, byte __r) noexcept
????? |?? ^~~~~~~~
/usr/include/c++/11/cstddef:146:3: error: ¡®constexpr unsigned char std::operator~(unsigned char)¡¯ must have an argument of class or enumerated type
? 146 |?? operator~(byte __b) noexcept
????? |?? ^~~~~~~~
/usr/include/c++/11/cstddef:160:3: error: ¡®constexpr unsigned char& std::operator|=(unsigned char&, unsigned char)¡¯ must have an argument of class or enumerated type
? 160 |?? operator|=(byte& __l, byte __r) noexcept
????? |?? ^~~~~~~~
/usr/include/c++/11/cstddef:164:3: error: ¡®constexpr unsigned char& std::operator&=(unsigned char&, unsigned char)¡¯ must have an argument of class or enumerated type
? 164 |?? operator&=(byte& __l, byte __r) noexcept
????? |?? ^~~~~~~~
/usr/include/c++/11/cstddef:168:3: error: ¡®constexpr unsigned char& std::operator^=(unsigned char&, unsigned char)¡¯ must have an argument of class or enumerated type
? 168 |?? operator^=(byte& __l, byte __r) noexcept
????? |?? ^~~~~~~~
In file included from ShowFilter.cpp:23:
UZ7HOStuff.h:155:14: error: unnamed scoped enum is not allowed
? 155 | #define byte unsigned char //????????????????? 0 to 255
????? |????????????? ^~~~~~~~
UZ7HOStuff.h:155:14: error: expected identifier before ¡®unsigned¡¯
In file included from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
???????????????? from /usr/include/c++/11/algorithm:74,
???????????????? from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:142,
???????????????? from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
???????????????? from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:43,
???????????????? from /usr/include/x86_64-linux-gnu/qt5/QtGui/QPainter:1,
???????????????? from ShowFilter.cpp:24:
/usr/include/c++/11/functional:979:19: error: expected unqualified-id before ¡®:¡¯ token
? 979 |?? enum class byte : unsigned char;
????? |?????????????????? ^
make: *** [Makefile:552: ShowFilter.o] Fehler 1
-------------------------------------------------------------------------------------------------------


as it can be seen, there is a missing switch or definition in the UZ7HOStuff.h

Do you have any advice for me to improve the source or the compile process?

Thanks in advance

Michael

--
mit freundlichen Gr¨¹?en

Michael Hartje

Prof. Dr.-Ing. Michael Hartje
Hochschule Bremen
Neustadtswall 30
28199 Bremen





Join [email protected] to automatically receive all group messages.