https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65756
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- I see. Thanks. With that fixed, the program links successfully. It would be nice if GCC gave a better message for this sort of a user error. I recall a compiler (HP aCC maybe, or MSVC) that suggested a library to link with when the linker failed with an unsatisfied reference.