On Thu, Sep 11, 2003 at 02:40:24AM -0700, Sivakkumar Kumararsamy wrote: > Hi, Hi. > I am new to linux programming. I need to port some > C/C++ code that was compiled in Solaris using GCC > 2.95.3 to Linux 9.0 > When I installed Red Hat Linux 9.0, by default it > installed GCC3.2.2. It produces lot of warning 'is > implicitly a typename'. You should fix the code. Make use of the `typename' keyword. > Also there are two include paths (/usr/include/c++ and > /usr/include/g++3). Which one should be used. You don't need to bother. GCC will automatically search for standard headers in the right location. The C++ standard compliant headers are in the /usr/include/c++ directory. The headers in the /usr/include/g++3 directory are from an older libstdc++ version which was not (that) compliant to the C++ standard. Run g++ with the -v switch to find out where it finds its files and which commands are executed to run the different stages of compilation. > Please explain me > the components involved and their locations. Is this version of GCC > a stable version? You could have had a look at gcc.gnu.org to find out. But yes, this is a stable GCC release (Feb 05 2003). -- Claudio Bley ASCII ribbon campaign (") Debian GNU/Linux user - against HTML email X http://www.cs.uni-magdeburg.de/~bley/ & vCards / \