Problem using cout&cin
Daniel Lidstrom
danli97@ite.mh.se
Sat Nov 11 04:01:00 GMT 2000
Hi,
I get the following error message when compiling a program with calls to
cout, cin, endl:
daniel lidström@DANIELS_MONSTER ~/opengl
$ gcc -o test test.cc
/cygdrive/c/DOCUME~1/DANIEL~1/LOCALS~1/Temp/ccrBuSQY.o(.text+0x24):test.cc: unde
fined reference to `cout'
/cygdrive/c/DOCUME~1/DANIEL~1/LOCALS~1/Temp/ccrBuSQY.o(.text+0x29):test.cc: unde
fined reference to `ostream::operator<<(char const *)'
/cygdrive/c/DOCUME~1/DANIEL~1/LOCALS~1/Temp/ccrBuSQY.o(.text+0x38):test.cc: unde
fined reference to `cin'
/cygdrive/c/DOCUME~1/DANIEL~1/LOCALS~1/Temp/ccrBuSQY.o(.text+0x3d):test.cc: unde
fined reference to `istream::operator>>(int &)'
/cygdrive/c/DOCUME~1/DANIEL~1/LOCALS~1/Temp/ccrBuSQY.o(.text+0x5c):test.cc: unde
fined reference to `endl(ostream &)'
/cygdrive/c/DOCUME~1/DANIEL~1/LOCALS~1/Temp/ccrBuSQY.o(.text+0x68):test.cc: unde
fined reference to `cout'
/cygdrive/c/DOCUME~1/DANIEL~1/LOCALS~1/Temp/ccrBuSQY.o(.text+0x6d):test.cc: unde
fined reference to `ostream::operator<<(int)'
collect2: ld returned 1 exit status
I did look in the faq but couldn't find help. I also searched the mail
archive.
What is missing?
------------------------------
Daniel Lidstrom *8)
e-mail: danli97@ite.mh.se
http://www.ite.mh.se/~danli97/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list