delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/28/19:26:04

From: "Damian Yerrick" <NOSP AT Musenet@pineight.8m.com>
Newsgroups: comp.os.msdos.djgpp
References: <38415d14 DOT 0 AT news1 DOT cluster1 DOT telinco DOT net>
Subject: Re: Newbie question, please help
Lines: 29
Organization: Pin Eight Software <http://pineight.8m.com/>
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <tNh04.2912$at4.65368@dfiatx1-snr1.gtei.net>
X-Trace: /KDWjYxoO3wZiyJCdedq0dvX3bLEEzn/1dgej4/VOODmdvyVbBkY0TwWkuU5b+JhY+tmUEb91PhO!1PtUs6U7lV+5tICqpGlIt5eYaAt7g4BdKZGq1oHKNdzVeYX03yLm9pNrYNzaZJB/wXBlmxQeNw==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Sun, 28 Nov 1999 22:12:41 GMT
Distribution: world
Date: Sun, 28 Nov 1999 22:12:41 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Torture" <sean001 AT skynow DOT net> wrote:
> c:/djgpp/bin/ld.exe: cannot open -lgpp: No such file or directory (ENOENT)

libgpp is an old, old library. Use stdcxx instead, which gxx automatically
uses.

> That is the error i get when i try to compile any C++ programs, its very
> frustrating because this is the first compiler ive found that i can use!

The correct command line is

  gxx -Wall hello.cpp -o hello.exe

stands for "Call C++ compiler, All warnings enabled, compile hello.cpp to
hello.exe"

or (if you have more than one .cpp file that goes into one .exe)

  gxx -Wall -c hello.cpp
  gcc *.o -o hello.exe

> Please reply!

Posted and emailed.


Damian Yerrick


- Raw text -


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