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

Reply via email to