Dear Eljay/Phil/Claudio/Chris et all I have installed gcc 2.95.2 and have an installation problem... i guess it is the primary reason why the application make file compiles c++ programs with gcc 3.2.2 and returns errors... The application works only on gcc 2.95.2(3) gcc 2.95.2 is installed successfully when i give $make LANGUAGES=c but fails with the following errors on giving $make ( Note - failure is in g++ ) /home/vinod/gcc/gcc-2.95.2/gcc/xgcc -B/home/vinod/gcc/gcc-2.95.2/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO indstream.cc indstream.cc: In method `struct streampos indirectbuf::seekoff(long long int, ios::seek_dir, int = 3)': indstream.cc:82: `struct streampos' used where a `int' was expected indstream.cc:85: `struct streampos' used where a `int' was expected indstream.cc:87: `struct streampos' used where a `int' was expected indstream.cc:89: conversion from `int' to non-scalar type `streampos' requested indstream.cc: In method `struct streampos indirectbuf::seekpos(_G_fpos64_t, int = 3)': indstream.cc:99: `struct streampos' used where a `int' was expected indstream.cc:102: `struct streampos' used where a `int' was expected indstream.cc:104: `struct streampos' used where a `int' was expected indstream.cc:106: conversion from `int' to non-scalar type `streampos' requested make[1]: *** [indstream.o] Error 1 make[1]: Leaving directory `/home/vinod/gcc/gcc-2.95.2/i686-pc-linux-gnu/libio' make: *** [all-target-libio] Error 2 [root@vinod gcc-2.95.2]# Please advise me what to do. I am a newbie to this.... Thanks in advance..... Vinod --- Eljay Love-Jensen <eljay@xxxxxxxxx> wrote: > Hi Vinod, > > You can put the location of GCC 2.95.3 first in your > PATH variable. > > You can make sure that any makefiles haven't hard > coded the path to GCC 3.2.2 in the file itself. One > convention for makefiles is to use CPP for the > preprocessor (gcc -E), CC for the C compiler (gcc), > CXX for the C++ compiler (g++), LINK for the linker > (gcc). So those are my first "usual suspects". > > You could hard code the path to GCC 2.95.3 in the > make file itself. (Similar to previous.) Or pass > in those settings to the make file explicitly, on > the command line. > > Makefiles do not honor your bash alias settings, > because a make script is a lot like a > non-interactive shell with its own environment. The > bash alias settings are not "inherited" in the make > environment. > > HTH, > --Eljay > > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com