https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113534
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is NOT a bug as -mabi=ms changes the ABI of all of the function calls including extern ones. Basically if you mark printf as having the GNU ABI, then it would work.