www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/31/10:30:48

From: dowling AT promis DOT com (Russell Dowling)
Subject: g++ help
To: djgpp AT sun DOT soe DOT clarkson DOT edu (Mailing list for gcc)
Date: Mon, 31 Jan 94 9:35:33 EST

HI y'all:
I would like some help with gnu C++ on dos.  I have installed djgpp. No
source, just binaries. The files I used were as recommended:

txi210bn.zip
txi210dc.zip

bnu22dc.zip bnu22bn.zip djdev111.zip djdoc111.zip djeoe111.zip djgpp.faq

gcc257bn.zip gcc257dc.zip

gas211bn.zip gas211dc.zip gpp257.zip

dj111m1.doc dj111m1.zip dj111m2.doc dj111m2.zip


C compiles and links work just dandy. C++ compiles OK but ends up with
unresolved entries as follows:

C:\DJGPP\SAMPLES\HELLO>gcc -o hello hello.cc -lgpl -lm
hello.cc(.text+18): undefined reference to `endl(ostream &)'
hello.cc(.text+22): undefined reference to `cout'
hello.cc(.text+27): undefined reference to `ostream::operator<<(const char *)'

The hello.cc is simple enough:


#include <iostream.h>
int main()
{
  cout << "Hello world.." << endl;
  return 0;
}



When I look at the entries in libgpl.a all I see is:

alloca.o
obstack.o
regex.o

It seems rather incomplete but is it? Am I missing some other library?
I notice that the sample C++ programs (grtask,sort) do not use stream I/O.
Is this a limitation?

..thanx for any help.

Please e-mail ME! I am subscribing to the djgpp mailing list as I type
this but I don't know if I'll be entered when any replies happen.

========================================================================

	Russell Dowling, Promis Systems Corporation (dowling AT promis DOT com)
	Ph#: (416)-960-0960 x256
	Fax: (416)-960-1222
========================================================================
-- 
========================================================================
	Russell Dowling, Promis Systems Corporation (dowling AT promis DOT com)
	Ph#: (416)-960-0960 x256
	Fax: (416)-960-1222
========================================================================

- Raw text -


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