Problem with G++ include files (fwd)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Date: Fri, 30 Apr 2004 23:22:35 -0500 (GMT)
From: Sumith Makam <makampec@xxxxxxxxxxxxx>
To: gcc-help-help@xxxxxxxxxxx
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	 	 


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

________________________________________________________________________

Powered by TREND VirusWall: Information Superhighway Centre, IIT Roorkee


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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux