SCons FAQ
LINK : fatal error LNK1104: cannot open file 'TEMPFILE'
To solve this issue add the following to your SConstruct file:
SConstruct
import os env['ENV']['TMP'] = os.environ['TMP']