[Bug libgcc/60475] undefined reference to `__gxx_personality_seh0'
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 9 18:26:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60475
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to zosrothko from comment #0)
> $ gcc -xc++ -std=gnu++11 -o foo foo.c
To link a C++ program you should explicitly link to the C++ runtime library,
using -lstdc++, or use g++ which does that automatically.
(If your source file is C++ why is your file called foo.c instead of having a
C++ file extension?)
More information about the Gcc-bugs
mailing list