How to point scons to a different compiler installed in my home directory?
问题 I have tried editing SConstruct to point to a different gcc compiler but it always seems to use the one defined in /usr/bin/gcc and /usr/bin/g++. env = DefaultEnvironment() env['CC'] = '/home/aaron/devel/bin/gcc' env['CXX'] = '/home/aaron/devel/bin/g++' What am I doing wrong? Also, is there a way to specify a different compiler on the command line using something like: scons cxx=/home/aaron/devel/bin/g++ I've gone crazy trying to make this work. Thanks! 回答1: There is a suggestion in "Why