www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/01/15:26:00

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1288
Path: news-dnh.mv.net!mv!news.sprintlink.net!cs.utexas.edu!uwm.edu!vixen.cso.uiuc.edu!news.uoregon.edu!news.bc.net!rover.ucs.ualberta.ca!news.ucalgary.ca!mewesolo
From: michael DOT wesolowski AT canada DOT cdev DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: problems linking C++
Date: 31 Jul 1995 02:35:12 GMT
Organization: The University of Calgary
Lines: 30
Nntp-Posting-Host: mewesolo AT srv1 DOT freenet DOT calgary DOT ab DOT ca
Originator: mewesolo AT srv1 DOT freenet DOT calgary DOT ab DOT ca
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

I am attempting to compile a simple 'hello, world' type program
in C++ using DJGPP v 1.12, with all 4 maintenance releases installed.
based upon the verbose output from the compiler, it appears to be
failing during the link phase with the following errors:

.... undefined reference to cout
....undefined reference to ostream::operator << (char const *)

(the ... is apparently pointing to the location in the source code)

I've included iostream.h, and all I'm doing is attempting to print out a text string.
I've successful

oops - finger trouble...

I've successfully compiled C programs using DJGPP so this has me stumped.
Reading the on-line documentation implies there should be a library
called iolib which doesn't appear to exist in the lib directory (unless
it's a reference to the include file). The problem is not that the
include file cannot be found - I've already encountered that and fixed
it. So... anyone else encounter this?

I am not a C/C++ guru so the solution might be obvious to someone 
who is. Thanks in advance.

-- 
---------------------------------------------------------------------

Michael Wesolowski (mewesolo AT freenet DOT calgary DOT ab DOT ca)

- Raw text -


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