Closed SRSaunders closed 3 weeks ago
Strange it worked for me on Kubuntu 23.10 but I haven't tested gcc. Fix is uploaded.
Thanks - that approach works too. Note the compile failures were on Debug builds. Release builds worked on linux.
Strange issue - something to do with the template and non-relocatable text sections from the static declaration of format.id
(see gcc error above). There might have been a template fix or linker option to handle this, but the code change is easier.
Due to recent changes in
idWaveFile::WriteWaveFormatDirect()
, gcc and clang debug builds fail to link because of:file->WriteBig( format.id );
gcc 13.2.1 Manjaro linux:
clang 16.0.6 Manjaro linux, and Apple clang version 15.0.0 (clang-1500.1.0.2.5):
An easy workaround that compiles and links everywhere (Win, Linux, Mac) is:
The following also works, but you need to duplicate the type info from the declaration:
file->WriteBig( static_cast<const uint32>( format.id ) );