Skip to content
Advertisement

scons still failed after setup env

I am using scons 1.2 on Centos 5, with devtoolset-1.1, devtoolset-1.1 root path locate at /opt/centoss/devtoolset-1.1/. I added devtoolset binary path to PATH variable, this is what I have

JavaScript

everything look good, then I try to make a simple C program using scons

JavaScript

I follow the guide at http://www.scons.org/doc/1.2.0/HTML/scons-user/x1673.html setup the env to use os.environ PATH like this, cat SConstruct

JavaScript

but scons still did not reach gcc

JavaScript

so, what I should do now?

Advertisement

Answer

After I read some chapters of scons user guide, I realized that I should change Program('hello.c') to env.Program('hello.c') , that will apply new Execution Environment.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement