Mail Archives: djgpp/2001/08/17/07:48:30

Message-ID: <>
From: Christopher all <Chrisall AT hotmsil DOT com>
X-Mailer: Mozilla 4.77 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Installing C++ on top of C
References: <3B7CDBC1 DOT 62DFD0C5 AT hotmsil DOT com> <9lio2t$cpp$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
Lines: 44
Date: Fri, 17 Aug 2001 10:00:57 GMT
X-Complaints-To: abuse AT home DOT net
X-Trace: 998042457 (Fri, 17 Aug 2001 03:00:57 PDT)
NNTP-Posting-Date: Fri, 17 Aug 2001 03:00:57 PDT
Organization: Excite AT Home - The Leader in Broadband
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi ,
         Thanks Hans  for the help in installation !! Now i have another
I am using

gcc version 2.95.2 19991024 (release)

I have problems compiling my trivial  program.

#include <iostream.h>
void main()
   cout << "My first C++ program\n\n";

I tried " gcc a.cpp "

C:\WINDOWS\Desktop>gcc  a.cpp
c:/djgpp/tmp\ccSSI7E3.o(.text+0x27):a.cpp: undefined reference to `cout'
c:/djgpp/tmp\ccSSI7E3.o(.text+0x2c):a.cpp: undefined reference to
ator<<(char const *)'
collect2: ld returned 1 exit status

then i tried "gcc  a.cpp -lstdcpp"

C:\WINDOWS\Desktop>gcc  a.cpp -lstdcpp
c:/djgpp/bin/ld.exe: cannot open -lstdcpp: No such file or directory
collect2: ld returned 1 exit status

- Raw text -

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