public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem with G++ include files (fwd)
@ 2004-04-30 18:04 Sumith Makam
  2004-05-02 11:55 ` llewelly
  0 siblings, 1 reply; 2+ messages in thread
From: Sumith Makam @ 2004-04-30 18:04 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1659 bytes --]

Date: Fri, 30 Apr 2004 23:22:35 -0500 (GMT)
From: Sumith Makam <makampec@iitr.ernet.in>
To: gcc-help-help@gcc.gnu.org
Subject: Problem with G++ include files

Hi all
As part of my work, I need both gcc-3.2 and gcc-2.95. And so, I've
installed gcc-2.95 after gcc3.2. So, whenever I compile the programs with
g++-3.2, include files from gcc-2.95 are included. And so, I manually
included the needed haeder files with -I tag...

But now I'm getting a problem of syntax errors in the included files and
the errors are not just in 2 or 3 files but in tens of files...

********************************************************************
/usr/include/c++/3.2.2/bits/stl_heap.h: In function `void
pop_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare)':
/usr/include/c++/3.2.2/bits/stl_heap.h:217: parse error before `>'
/usr/include/c++/3.2.2/bits/stl_heap.h: In function `void
make_heap(_RandomAccessIterator,
_RandomAccessIterator)':
/usr/include/c++/3.2.2/bits/stl_heap.h:233: parse error before `>'
/usr/include/c++/3.2.2/bits/stl_heap.h: In function `void
make_heap(_RandomAccessIterator,
_RandomAccessIterator, _Compare)':


/usr/include/c++/3.2.2/bits/stl_algo.h:1009: parse error before `>'
/usr/include/c++/3.2.2/bits/stl_algo.h:1015: parse error before `)'
/usr/include/c++/3.2.2/bits/stl_algo.h: At top level:
/usr/include/c++/3.2.2/bits/stl_algo.h:1020: parse error before `return'
/usr/include/c++/3.2.2/bits/stl_algo.h: In function `_ForwardIter
remove(_ForwardIter, _ForwardIter, const _Tp &)':
***********************************************************************
can anyone help me out?
Sumith Makam
M.Tech CSE II Yr
IIT Roorkee	 	 



[-- Attachment #2: Type: text/plain, Size: 259 bytes --]

----------------------------------------- (on isc)

________________________________________________________________________

Powered by TREND VirusWall: Information Superhighway Centre, IIT Roorkee


---------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with G++ include files (fwd)
  2004-04-30 18:04 Problem with G++ include files (fwd) Sumith Makam
@ 2004-05-02 11:55 ` llewelly
  0 siblings, 0 replies; 2+ messages in thread
From: llewelly @ 2004-05-02 11:55 UTC (permalink / raw)
  To: Sumith Makam; +Cc: gcc-help

Sumith Makam                        <makampec@iitr.ernet.in> writes:

> Date: Fri, 30 Apr 2004 23:22:35 -0500 (GMT)
> From: Sumith Makam <makampec@iitr.ernet.in>
> To: gcc-help-help@gcc.gnu.org
> Subject: Problem with G++ include files
> 
> Hi all
> As part of my work, I need both gcc-3.2 and gcc-2.95. And so, I've
> installed gcc-2.95 after gcc3.2. So, whenever I compile the programs with
> g++-3.2, include files from gcc-2.95 are included. And so, I manually
> included the needed haeder files with -I tag...
[snip]

You should re-install gcc-3.2 and gcc-2.95 with different --prefix
    arguments, like this:

    ../gcc-2.95.3/configure --prefix=/usr/local/gcc-2.95.3 # rest of args

    ../gcc-3.2.3/configure --prefix=/usr/local/gcc-3.2.3 # rest of

Installing multiple gccs with the same prefix has several problems,
    including this one.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-02 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-30 18:04 Problem with G++ include files (fwd) Sumith Makam
2004-05-02 11:55 ` llewelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).