public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30356]  New: library function error
@ 2007-01-03  0:20 ryan dot mccoskrie at gmail dot com
  2007-01-03  2:24 ` [Bug c++/30356] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: ryan dot mccoskrie at gmail dot com @ 2007-01-03  0:20 UTC (permalink / raw)
  To: gcc-bugs

when compiling a program which uses the file iostream gcc exits due to invalid
references.

an example:

#include <iostream>

void main()
{
   std::cout << "This won't work \n";
}

Will result in:

/tmp/ccd16f9g.o(text + 0x35): In function
'__static_initionalization_and_destruction_0(int, int)': undefined reference to 
'std:ios__base:std:Init::Init[in charge]()'

followed by others of simmiler content.

This bug was found on a pentium 4 i686 machine running freespire linux 1.0.13


-- 
           Summary: library function error
           Product: gcc
           Version: 3.3.5
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ryan dot mccoskrie at gmail dot com


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


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

* [Bug c++/30356] library function error
  2007-01-03  0:20 [Bug c++/30356] New: library function error ryan dot mccoskrie at gmail dot com
@ 2007-01-03  2:24 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-03  2:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-01-03 02:24 -------
You are not linking against the libstdc++ library which contains the C++
standard library.

Either use g++ instead of gcc to link or link with -lstdc++.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2007-01-03  2:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-03  0:20 [Bug c++/30356] New: library function error ryan dot mccoskrie at gmail dot com
2007-01-03  2:24 ` [Bug c++/30356] " pinskia at gcc dot gnu dot org

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