This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcc/60475] undefined reference to `__gxx_personality_seh0'


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?)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]