Qt4 is an old release (the current one is almost Qt6). A newer compiler is usually backward-compatible with older codes. So you should be able to compile Qt4 on Ubuntu 20.04 with system-provided GCC right away.
пн, 18 мая 2020 г. в 14:34, Hongyi Zhao via Gcc <gcc@gcc.gnu.org>: > Hi, > > I want to compile qt4 on Ubuntu 20.04 which shipped with the following > gcc version: > > $ gcc --version > gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 > > But I'm not sure whether this gcc version is suitable for qt4. Any > hints for this problem? > > Regards, > -- > Hongyi Zhao <hongyi.z...@gmail.com> >