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
Tag: scons
How to make vim high-light as python when editing scons files?
I’m using vim to edit SConstruct files of scons, I want to make vim high-light as python grammar automatically. How to do that? How to associate file name of ‘SConstruct’ with ‘Python’ in vimrc? Thanks Answer Add this to your vimrc:
When changing the comment of a .c file, scons still re-compile it?
It’s said that scons uses MD5 signature as default decider to dertermine whether a source file needs re-compilation. E.g. I’ve got SConstruct as below: And my o.c is: Run scons and remove the comment line, run scons again. I expect that scons should not compile it again, but actually it’s: If I change SConstruct file to add one line: Still
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