www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/04/22:48:25

From: brett AT softorange DOT com (Brett Porter)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Follow Up: Why doesn't C++ work!?!?!
Date: Sat, 05 Sep 1998 02:34:22 GMT
Organization: Softorange Interactive
Lines: 38
Message-ID: <35f09fea.1565750@news.uow.edu.au>
References: <35EF0D07 DOT DC9983E1 AT sandia DOT gov> <35F07A4B DOT F830F880 AT sandia DOT gov>
Reply-To: brett AT softorange DOT com
NNTP-Posting-Host: ceast29.uow.edu.au
NNTP-Posting-Date: 5 Sep 1998 02:33:19 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Fri, 04 Sep 1998 17:39:55 -0600, Jason <jpsaave AT sandia DOT gov> wrote:

>Well, I tried using gxx and it worked!  It kinda pisses me off that
>DJGPP never gives examples of compiling C++ progs from the command line
>- I was given the impression that I only needed to use gcc and it would
>do everything for me, since that's what the DJGPP User's Guide said on
>the website.  I guess that's what you can expect from a free compiler
>huh?  :O)
>

'It kinda pisses me off' that you have that attitude, because you have
your facts wrong. And despite being a free compiler you wrote the ng
and got one correct answer.

There are noting wrong with the docs., you -do- only need gcc. Try
this:

gcc -o program.exe <file1> <file2> ... -lstdcxx

Putting that -lstdcxx links in the C++ libraries (like iostream,
etc.). Adding this is effectively the same as running gxx.

All this can be found out by reading the INFO docs. on gcc.

But you want examples of compiling c++ programs? well there are some
on simtel.net, in the same place where you got it. Try
v2misc/Examples.tgz or v2/djtst201.zip (djtst202.zip if you are using
the alpha of 2.02)

AFAIK these are both recommended by either the FAQ or the DJGPP user's
guide (esp. djtst201.zip)

So I hope this helps. And remember, if you still think the docs.
aren't good enough, feel free to volunteer to help and make them
better. That's what DJGPP is all about.

Brett

- Raw text -


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