[Bug c/123552] Linker error that gets fixed by adding an optimization flag
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 12 16:32:49 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123552
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Keywords| |link-failure
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You need to link against the math library too.
-lm.
More information about the Gcc-bugs
mailing list