| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Subject: | gcc/gcc-2: Which paket is missing? (undefined reference to 'cout') |
| To: | cygwin AT cygwin DOT com |
| Message-ID: | <OFE9FFF7E3.A54814F0-ONC1256C15.002E6B6B@dornier.dasa.de> |
| From: | Mark DOT Eggenstein AT Dornier DOT eads DOT net |
| Date: | Wed, 14 Aug 2002 10:41:25 +0200 |
| MIME-Version: | 1.0 |
Hi.
Sorry for bothering, this should be a question for the faq but it's not
handled there.
When compiling&linking with a simple test program with use of 'cout' i get
undefined reference to `cout'. Obviously something in my installation is
missing
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?
Thanks
mic
gcc 2.95-3.6
gcc-2 2.95-3.9
libintl1 0.10.40-1
libintl2 0.11.2-2
#include <iostream>
int main()
{
std::cout << "hi";
return 0;
}
$ 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
const *)'
collect2: ld returned 1 exit status
$
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |