delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
X-Authentication-Warning: | dagobert.informatik.uni-stuttgart.de: setzersn owned process doing -bs |
Date: | Thu, 27 Jan 2000 09:43:54 +0100 (MET) |
From: | Sebastian Setzer <setzersn AT trick DOT informatik DOT uni-stuttgart DOT de> |
X-Sender: | setzersn AT dagobert DOT informatik DOT uni-stuttgart DOT de |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | string - output on cout |
Message-ID: | <Pine.GSO.4.10.10001270943060.6728-100000@dagobert.informatik.uni-stuttgart.de> |
MIME-Version: | 1.0 |
I wrote a simple program but got a linker - error. Here's the Code : --------------------- #include <string> #include <iostream.h> void main(){ string a("A"); string b("B"); string c = a+b; cout << c << endl; } -------------------- And here's the output of g++ : c:\tmp/cc9FDoVp.o(.text$__ls__H3ZcZt18string_char_traits1ZcZt24__default_alloc_t emplate2b0i0_R7ostreamRCt12basic_string3ZX01ZX11ZX21_R7ostream+0x32):str.cc: und efined reference to •stream::write(char const *, int)' collect2: ld returned 1 exit status Is it a bug ? Must I link it with a library ? Is my installation wrong ? I use the Jan 15th - patch on Windows 95 and gcc 2.95.2. Thanks in advance, Sebastian Setzer -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |