This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem using cout&cin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]