delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/28/12:21:39

From: Rodeo Red <rodeored AT netstep DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Which files to download ?
Date: Thu, 28 Oct 1999 08:58:02 -0400
Organization: Church of Evangelical Environmental Extremism
Lines: 97
Message-ID: <F7198F089045570E.15DDC10A62B21A59.DC8AB3364DD22899@lp.airnews.net>
X-Orig-Message-ID: <38184858 DOT 1AE689A4 AT netstep DOT net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 991018103603 DOT 3777N-100000 AT is>
Abuse-Reports-To: support at netstep.net to report improper postings
NNTP-Proxy-Relay: library1.airnews.net
NNTP-Posting-Time: Thu Oct 28 07:57:21 1999
NNTP-Posting-Host: !WbG/-@[/EU%DjD (Encoded at Airnews!)
Mime-Version: 1.0
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


Eli Zaretskii wrote:

> On Sun, 17 Oct 1999, Rodeo Red wrote:
>
> > v2gnu/gpp281b.zip
> >          The GNU C++ compiler binary (the docs are part of the
> > gccNNNb.zip package, see above), the C++ header files
> >           and standard C++ class libraries, including the STL, and their
> > docs.
> >
> > Which implies that this file includes C++ libraries. However the zip
> > picker says v2gnu/gpp2951b.zip,  which I guess is the equivelent file in
> > the new version, is a C++ compiler. Then it says v2gnu/lgpp295b.zip are
> > the C++ libraries. However, there is no mention in the faq of any lgpp
> > files .
>
> The FAQ does mention lgp2811b.zip:
>
>     `v2gnu/lgp2811b.zip'
>           Additional GNU C++ class libraries.  This library is now deprecated
>           and no longer maintained.  I suggest not to use it.

But thats not a lgpp file or is it ?

>
>
> I think the change from lgpNNN to lgppNNN is unfortunate, but it's not
> up to me to determine the names of the packages.

Are you saying that lgp and lgpp are reffering to different versions of the same
file ?


>
>
> > Is v2gnu/lgpp295b.zip neccesary for the C++ library or not ?
>
> Yes and no ;-).
>
> gppNNNb.zip includes the standard C++ classes, including the STL.
> lgppNNNb.zip has some additional classes that are GNU extensions.
>
> Most people don't need lgppNNNb.zip, especially since those extra
> classes are now deprecated and unmaintained.  So my advice in the FAQ
> (see above) still stands: I suggest to download gppNNNb.zip alone;
> chances are you will never need the other file.

>

I do not have LGPP295b.zip unzipped, which according to the above advice I should
not need.
I've managed to compile hello.cpp and now have hello.o .

The readme.1st says:
"To link a C++ program, use gxx instead of gcc, like this:
 gxx -o myprog.exe mymain.o mysub1.o mysub2.o"

However, when I try to link it this is what happens:

C:\djgpp>gxx -o hello.exe hello.o
c:/djgpp/bin/ld.exe: cannot open -lgpp: No such file or directory (ENOENT)

It appears to be trying to access the file I'm not supposed to need.

So I went to the FAQ
Contrary to what I said before, although NNNlgpp is not mentioned, -lgpp is
mentioned several times :


                                8.9 DJGPP uses a one-pass linker

Q: I give all the libraries to gcc, but I still get unresolved externals when I
link. What gives?


it says : "When you use the gxx, the gpp or g++ compilation drivers to compile a
C++ program, it automatically names the C++ libraries in the correct order. (gpp
and gxx are the alternative names for g++ on DOS, which doesn't allow the +
character in file
names.) "


So after I read that I tried gpp which worked fine. So apparently myt mistake is
in how I interpreted
"gxx -o myprog.exe mymain.o mysub1.o mysub2.o"
in the readme.1st

I strill don't understand why the readme1st uses "gxx". Does gxx really exist or
is that some kind o general  nomenclature the readme.1rt is using to refer to all
compilation drivers in general, and I'm supposed to interpret it as GPP ?

Bottom line: what is meant by these terms ? gpp  gxx  g++

Red

- Raw text -


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