www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/08/10:36:17

Message-ID: <000701bdc2d8$80e41e40$51867dc2@indigo.ie>
From: "David FitzGerald" <dfitz AT indigo DOT ie>
To: <djgpp AT delorie DOT com>
Subject: Can't get c++ part of djgpp to work!
Date: Sat, 8 Aug 1998 15:26:13 +0100
MIME-Version: 1.0

I'm having trouble compiling and linking this c++ program with djgpp under windows 98...
I'm not really used to using windows/dos machines, but I'm familiar with gcc under UNIX.

Stuff written in c seems to be fine, but c++ seems not to work

---------------------------
#include <iostream.h>

int main()
{
 cout << "Hello World";
 return(0);
}



the error message is as follows

C:\WINDOWS>cd ..\djgpp

C:\djgpp>gcc -c dpf.cc

C:\djgpp>gcc -o dpf.exe dpf.o
dpf.o(.text+0xc):dpf.cc: undefined reference to `endl(ostream &)'
dpf.o(.text+0x16):dpf.cc: undefined reference to `cout'
dpf.o(.text+0x1b):dpf.cc: undefined reference to `ostream::operator<<(char const
 *)'
dpf.o(.text+0x26):dpf.cc: undefined reference to `ostream::operator<<(ostream &(
*)(ostream &))'

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


The installed files are as follows...


v2/copying.dj        DJGPP Copyright info            2 kb
v2/djdev201.zip      DJGPP Basic Development Kit   1.5 mb
v2/faq210b.zip       Frequently Asked Questions    390 kb
v2/readme.1st        Installation instructions      14 kb

v2apps/rhide14b.zip  RHIDE                         1.6 mb

v2gnu/bnu281b.zip    Basic assember, linker        1.8 mb
v2gnu/gcc281b.zip    Basic GCC compiler            1.3 mb
v2gnu/gpp281b.zip    C++ compiler                  1.2 mb
v2gnu/lgp2811b.zip   C++ libraries                 583 kb
v2gnu/mak3761b.zip   Make (processes makefiles)    230 kb




Thanks for any help you may be able to offer.

David FitzGerald.
Computer Science / Artificial Intellgienge '97
University of Birmingham, UK.

- Raw text -


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