https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120762
Bug ID: 120762 Summary: PRINT: issue activating "Q" print format specifier [solved] Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libquadmath Assignee: unassigned at gcc dot gnu.org Reporter: newbie-02 at gmx dot de Target Milestone: --- I had an issue with quadmath printing nonsense like %Qg %.36QE instead of the values intended. It turned out that on my system ( Linux - Debian - Kali ) the library sometimes isn't linked in when no quadmath calculations are performed and only the printing system / printf hooks are to be used. Similar happened with "lipdfp", decimal math, and a hint by Andrew Pinski in https://github.com/libdfp/libdfp/issues/186#issuecomment-2957037007solved unveiled it as a consequence of gcc defaulting to "--as-needed" linking on Debian / ubuntu systems, and using "-Wl,--no-as-needed" as option before the source and target files in the compile command can oversteer. I tried and the same works for quadmath. Posted to A.) spread the word ( before Andrew's comment I couldn't find any hint online ), B.) propose to change the behaviour, IMHO using the print format specifier in code should activate "library is needed".