Right, and as "release" and "debug" are reserved for mingw I created "msvc" and "msvc-debug". I don't think I had the problem with the default directory. But I cannot reproduce the problem anymore even after I deleted the directory, ".sconsign.dblite" and "env.cache".
I will try a separate build directory as well. BTW, I am not sure if mode=debug and build_dir=msvc_debug work together, do they? I mean, usually mode=debug will set build_dir to debug, *and* set default debug compiler options. The idea behavior is that mode=debug build_dir=msvc_debug will use the right build_dir, and the right compiler options.
By the way another problem that should be easy to solve: scons: *** Path for option build_dir does not exist: msvc-debug File "SConstruct", line 304, in ?
Yes. There are two ways to specify a path option. The usual option allows an non-exist path, and I will have to check and create the path myself; and a path option that will accept only pre-exist path. I guess for build_dir, it makes more sense to use the usual option. I will fix this problem. Bo