Mail Archives: djgpp/1996/04/01/22:20:21
>> > Is there an STL ported to DJGPP? I know that gcc 2.7.2 comes with STL
>> > (we have it at work on our SGI), so I was wondering if DJGPP would
>> > compile it if I downloaded it from HP, our copied the include files from
>> > my office gcc. I'm knew to DJGPP so I don't know how well it does
>> > templates - gcc seems pretty good.
>>
>> I think that it's is in the libstdcx.a library (add -lstdcxx to the end of
>> your compilation command line). The latest version of lgp271b.zip should
>> have it.
>
>Actually, STL is the C++ Standard Template Library, and it is
>implemented as a series of header files in which the templates are
>defined. I copied the files from my SGI machine and they seem to compile
>OK, although somewhere I'm having trouble with an inline definition of
>new(size_t, void*) - I think I can work it out.
>
>Congrats to all those involved in GPP and DJGPP. STL causes most compilers
>fits because it uses some cutting edge def's for templates.
Actually, last I checked the version of STL included in libg++ had to
be modified to work with GCC.
>By the way, I downloaded lgp271b.zip and I have libgpp.a from it. I
>assume that's an alias for libstdcx.a - am I wrong?
Yes. You have the old lgp271b.zip; there is now a newer version with
libstdcx.a in it. Note that libstdcx.a, the STL headers, iostream stuff,
and other classes which are part of the new ISO C++ standard do not impose
the LGPL restrictions because they are standard. BTW, one tiny suggestion
for DJ: Build cxx.exe (which is just like gxx.exe, but it only links
in libstdcx.a, not libgpp.a, so resulting programs are restriction-free
unless you manually specify required libraries -- it is now part of gcc
too).
>I've got gcc272b.zip from oakland and it doesn't have it. I'll try coast
>and see if it's there.
Some SimTel mirrors have been pretty flaky lately. It doesn't help that
ftp.coast.net redirects to random mirrors with varying degrees of
up-to-dateness when it's busy, either. Try ftp.cso.uiuc.edu.
-- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp!
"That's right," he said. "We're philosophers. We think, therefore we am."
-- Terry Pratchett, _Small Gods_ | Geek Code 3.1 [for explanation, finger
hayden AT mankato DOT msus DOT edu]: GCS/M/S/C d- s: a18 C++(+++)>++++ UL++>++++ P++
L++>+++++ E- W(-) N++(+) o+ K- w--- O M@ V-(--) PS++(+++) PE- Y(+) PGP(+) t(+)
!5 X-- R(-) tv-@ b++(+++) DI+ !D-- G++(+++) e->+++++(*) h!>+ r-(--)>+++ y?
- Raw text -