public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20081] New: gcc does not link hello.cc with -lstdc++
@ 2005-02-19 21:03 mail at hanns-konrad dot de
  2005-02-19 21:04 ` [Bug c++/20081] " pinskia at gcc dot gnu dot org
  2005-02-21 17:53 ` mail at hanns-konrad dot de
  0 siblings, 2 replies; 3+ messages in thread
From: mail at hanns-konrad dot de @ 2005-02-19 21:03 UTC (permalink / raw)
  To: gcc-bugs

man gcc
 => For any given input file, the file name suffix determines what kind of
 => compilation is done: file.cc: C++ source code which must be preprocessed.
# BUT:
cat <<EOF >hello.cc
  #include <iostream>
  main() {std::cout << "Hello, world\n";}
EOF
gcc hello.cc
 => : undefined reference to ...
 => collect2: ld returned 1 exit status

-- 
           Summary: gcc does not link hello.cc with -lstdc++
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mail at hanns-konrad dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-pc-linux-gnu
  GCC host triplet: i486-pc-linux-gnu
GCC target triplet: i486-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20081


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/20081] gcc does not link hello.cc with -lstdc++
  2005-02-19 21:03 [Bug c++/20081] New: gcc does not link hello.cc with -lstdc++ mail at hanns-konrad dot de
@ 2005-02-19 21:04 ` pinskia at gcc dot gnu dot org
  2005-02-21 17:53 ` mail at hanns-konrad dot de
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-19 21:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-19 15:22 -------
Use g++ to link.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20081


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/20081] gcc does not link hello.cc with -lstdc++
  2005-02-19 21:03 [Bug c++/20081] New: gcc does not link hello.cc with -lstdc++ mail at hanns-konrad dot de
  2005-02-19 21:04 ` [Bug c++/20081] " pinskia at gcc dot gnu dot org
@ 2005-02-21 17:53 ` mail at hanns-konrad dot de
  1 sibling, 0 replies; 3+ messages in thread
From: mail at hanns-konrad dot de @ 2005-02-21 17:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mail at hanns-konrad dot de  2005-02-21 02:01 -------
Subject: Re:  gcc does not link hello.cc with -lstdc++

Thank you!
That is not what the man-page says. hello.cc is a c++ -file.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20081


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-21  2:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-19 21:03 [Bug c++/20081] New: gcc does not link hello.cc with -lstdc++ mail at hanns-konrad dot de
2005-02-19 21:04 ` [Bug c++/20081] " pinskia at gcc dot gnu dot org
2005-02-21 17:53 ` mail at hanns-konrad dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).