delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/11/07:02:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Sat, 11 Nov 2000 12:47:05 +0100 (MET)
From: Daniel Lidstrom <danli97 AT ite DOT mh DOT se>
X-Sender: danli97 AT happy
To: cygwin AT sources DOT redhat DOT com
Subject: Problem using cout&cin
Message-ID: <Pine.GSO.4.21.0011111244560.708-100000@happy>
MIME-Version: 1.0
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id HAA03598

Hi,

I get the following error message when compiling a program with calls to
cout, cin, endl:
daniel lidström AT 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 AT ite DOT mh DOT se
http://www.ite.mh.se/~danli97/



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019