www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/25/11:06:51

From: kagel AT quasar DOT bloomberg DOT com
Date: Thu, 25 Apr 1996 10:21:12 -0400
Message-Id: <9604251421.AA04436@quasar.bloomberg.com >
To: djgpp AT delorie DOT com
In-Reply-To: <4lko0c$6u8@news.mel.aone.net.au> (mcantos@ocean.com.au)
Subject: Re: C++ compiling
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   In article <199604221547 DOT BAA05718 AT linuxbox DOT nse DOT com DOT au>, naderr AT topaz DOT cqu DOT edu DOT au wrote:
   >I have a simple hellocpp.cc 
   >
   >#include <iostream.h>
   >
   >int main(void)
   >{
   >        cout << "Hello from a C++ program" << endl;
   >        return (0);
   >}
   >
   >and from the command line I try ...
   >
   >gcc hellocpp.cc -I\djgpp\lang\cxx hellocpp.cc -o hellocpp.exe
   >
   >Yet it fails to find those C++ header files that live in
   >\djgpp\lang\cxx

Try:

	gcc  -I/djgpp/lang/cxx  -o hellocpp.exe  hellocpp.cc

-- 
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com

A proverb is no proverb to you 'till life has illustrated it.  -- John Keats

- Raw text -


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