Don't understand failure to compile dt 4.4.0 from source. Corrective advice please

I’m sure I had the same issue as you back in April. My notes on this are below, which may or may not help.

When I tried to build 4.3 it was complaining that GCC11 was too old and that I should be on GCC12.

GCC12 was already installed and from this pixls link I had to use the 2 export commands below.

export CC=gcc-12
export CXX=g++-12

It then complained that ‘g++12’ wasn’t installed so I installed it via Synaptic and then it would compile.

edit: Ubuntu 22.04