Skip to content
Advertisement

Tag: scons

When is scons “Depends” useful when compiling c/cpp files?

Any c/cpp files can call functions defined in other module, only linking phase resolve them. These c/cpp files don’t depend on each other for compiling sequence. So my question is, is there any case that one c/cpp file should depend on another one, so that we need to specify in SConstruct like: Thanks! Answer It can be useful to force

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 everything look good, then I try to make a simple C program using scons 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

Advertisement