delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/14/13:08:12

Xref: news-dnh.mv.net comp.os.msdos.djgpp:358
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!agate!ames!tulane!news.tulane.edu!rs5.tcs.tulane.edu!tom
From: tom AT rs5 DOT tcs DOT tulane DOT edu (Tom Gerace)
Newsgroups: comp.os.msdos.djgpp
Subject: GCC and C++ --- undefined references
Date: 12 Jun 1995 13:31:45 GMT
Organization: Tulane University, New Orleans, LA
Lines: 21
Nntp-Posting-Host: rs5.tcs.tulane.edu
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Please help me with this one...  I've got all of the parts of DJGPP 
installed for C and C++ (all the libraries and docs included).  Compiling 
and running C programs works great.  When I compile a C++ program, I get 
"undefined reference to 'cout'".  My environment is set up the way the 
docs and the FAQ says it should be, and I've even tried explicityly 
specifying libraries to link in, all with no good result.  

The error messages are:
"undefined reference to 'cout'"
"undefined reference to 'ostream::operator<<(char const *)'"

Any help will be greatly appreciated!

Thanks in advance.

Tom Gerace                         Tom DOT Gerace AT tulane DOT edu
Manager of User Services           http://www.tulane.edu/~tom/
Tulane Computing Services          (504) 865-5631 Ext. 2554
Tulane University
New Orleans, LA  70118  USA

- Raw text -


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