delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/13/16:51:21

From: "newbie" <hagedorn AT bmts DOT com>
Subject: C++ compiling problem
Newsgroups: comp.os.msdos.djgpp
Message-ID: <01bf8d34$c5c06780$e284b7d8@dave>
X-Newsreader: Microsoft Internet News 4.70.1155
Organization: Bruce Municipal Telephone System
Cache-Post-Path: Virginia.BMTS.Com!unknown AT ts1-e-p32 DOT bmts DOT com
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Lines: 21
NNTP-Posting-Host: 216.183.128.12
X-Trace: tw12.nn.bcandid.com 952979913 216.183.128.12 (Mon, 13 Mar 2000 13:38:33 MST)
NNTP-Posting-Date: Mon, 13 Mar 2000 13:38:33 MST
Date: Mon, 13 Mar 2000 20:38:33 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm trying to compile a C++ program (I'm using DJGPP 2.95) that uses the
iostream library.  Whenever I try to use cin or cout I get something like
this:

ccRBnmzf.o(.text+0x19):test.cpp: undefined reference to `cin'

or:

ccRBnmzf.o(.text+0x1e):test.cpp: undefined reference to
`istream::operator>>(int&)'

I've installed all the C++ libraries, and set up all the paths in my
autoexec.bat.  Any help would be appreciated.  Thanks

Dave






- Raw text -


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