gcc multiple instances conflict

Eljay Love-Jensen eljay@adobe.com
Thu Sep 18 12:00:00 GMT 2003


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




More information about the Gcc-help mailing list