This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/60475] undefined reference to `__gxx_personality_seh0'
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 09 Mar 2014 18:26:00 +0000
- Subject: [Bug libgcc/60475] undefined reference to `__gxx_personality_seh0'
- Auto-submitted: auto-generated
- References: <bug-60475-4 at http dot gcc dot gnu dot org/bugzilla/>
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?)