This is the mail archive of the
mailing list for the Cygwin project.
gcc/gcc-2: Which paket is missing? (undefined reference to 'cout')
- From: Mark dot Eggenstein at Dornier dot eads dot net
- To: cygwin at cygwin dot com
- Date: Wed, 14 Aug 2002 10:41:25 +0200
- Subject: gcc/gcc-2: Which paket is missing? (undefined reference to 'cout')
Sorry for bothering, this should be a question for the faq but it's not
When compiling&linking with a simple test program with use of 'cout' i get
undefined reference to `cout'. Obviously something in my installation is
although I did not de-select anything the setup selects when selecting gcc.
Basically the question is: is there a lib/paket for the std-libraries?
std::cout << "hi";
$ gcc -c t.cpp
$ gcc t.o
t.o(.text+0x1c):t.cpp: undefined reference to `cout'
t.o(.text+0x21):t.cpp: undefined reference to `ostream::operator<<(char
collect2: ld returned 1 exit status
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html