* string - output on cout
@ 2000-01-27 0:43 Sebastian Setzer
0 siblings, 0 replies; only message in thread
From: Sebastian Setzer @ 2000-01-27 0:43 UTC (permalink / raw)
To: cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
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@sourceware.cygnus.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-01-27 0:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-27 0:43 string - output on cout Sebastian Setzer
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).