This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cout not in libg ++ simple hello world does not work ?
- To: egcs at cygnus dot com
- Subject: cout not in libg ++ simple hello world does not work ?
- From: "Martin Giguere" <zefrench at hotmail dot com>
- Date: Sat, 05 Sep 1998 10:39:03 PDT
sorry for posting such a newbvie question here, but I just finished a
c++ course suing proprietary tools on win32, and I would now like to
start programming in linux but I get the following error (which lead be
to beleive I am missing the std templates but then again what do I know)
Thanks for your time
here is the error[root@maitre dump]# egcs -o bit bit.cpp
/tmp/cc09NfV8.o: In function `main':
/tmp/cc09NfV8.o(.text+0x9): undefined reference to `cout'
/tmp/cc09NfV8.o(.text+0xe): undefined reference to
`ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
[root@maitre dump]#
[root@maitre dump]# rpm -qa |grep egcs
egcs-libstdc++-1.1b-1
egcs-g77-1.1b-1
egcs-objc-1.1b-1
egcs-c++-1.1b-1
egcs-1.1b-1
egcs-libstdc++-devel-1.1b-1
[root@maitre dump]#
redhat 5.1 on i386
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com