Article View: alt.os.linux.mandrake
Article #502Re: Mandrake 2.2.15, g++ 2.95.3, and C++ STL
From: Anders Lund
Date: Wed, 04 Oct 2000 00:00
Date: Wed, 04 Oct 2000 00:00
42 lines
2398 bytes
2398 bytes
Chris Nelson wrote:
> I'm trying to compile a little C++ file on multiple UNIX platforms. On
> Solaris, Irix, and HP-UX, all seems well but on Mandrake Linux, g++
> doesn't seem to be able to find the C++ STL components. This stupid
> little file:
>
> #include <stdio.h>
> #include <map>
>
> int main(int argc, char argv[])
> {
> printf("don't compile me on linux, cuz' I won't!\n");
> return 0;
> }
>
> won't compile on Mandrake Linux. FWIW, on Solaris, we're using g++
> 2.95.1 and find map in /usr/local/include/g++ and
> /usr/local/include/g++-3 but those directories (or others like them)
> don't exist on the Mandrake system.
>
> Was there some re-org of the g++ STL between 2.95.1 and 2.95.3? Where
> should I expect to find the STL on Mandrake?
>
> Chris
On my system, they are under /usr/include:
/usr/include/g++-2/map
/usr/include/g++-2/map.h
/usr/include/g++-3/map
/usr/include/g++-3/map.h
Trying to compile your code:
[anders@pluto anders]$ gcc maptest.c -o maptest
gcc.colorgcc: maptest.c: No such file or directory
gcc.colorgcc: No input files
[anders@pluto anders]$
-anders
--
[ the word wall - and the trailing dot - in my email address
is my _fire_wall - protecting me from the criminals abusing usenet]
Technical Details
Message-ID:
<XqIC5.462$u23.38850@news000.worldonline.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39D8C655.F690823D@pinebush.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8a83,fc979ce140e17ca9 X-Google-Attributes: gidf8a83,public X-Google-Thread: f9382,fc979ce140e17ca9 X-Google-Attributes: gidf9382,public X-Google-Thread: 10ba33,fc979ce140e17ca9 X-Google-Attributes: gid10ba33,public X-Google-Thread: ff9be,fc979ce140e17ca9 X-Google-Attributes: gidff9be,public From: Anders Lund <anders@wall.alweb.dk> Subject: Re: Mandrake 2.2.15, g++ 2.95.3, and C++ STL Date: 2000/10/04 Message-ID: <XqIC5.462$u23.38850@news000.worldonline.dk> X-Deja-AN: 677500471 Content-Transfer-Encoding: 8Bit References: <39D8C655.F690823D@pinebush.com> Followup-To: alt.os.linux.mandrake Content-Type: text/plain; charset=ISO-8859-1 X-Complaints-To: news-abuse@wol.dk X-Trace: news000.worldonline.dk 970674999 213.237.27.144 (Wed, 04 Oct 2000 17:56:39 MET DST) Organization: Saguaro ApS Mime-Version: 1.0 User-Agent: KNode/0.3 NNTP-Posting-Date: Wed, 04 Oct 2000 17:56:39 MET DST Newsgroups: alt.os.linux.mandrake,gnu.g++.help,comp.os.linux,comp.os.linux.questions