I have fixed this problem. Please add the following lines to compiler/SConstruct after a similar line for *.cpp for item in DIRS: Source.append(Glob(item+"/*.c"))