[Scons-users] Include path not added to cl.exe

Pierre-Luc Boily pierreluc.boily at gmail.com
Wed Dec 7 11:15:53 EST 2016


So weird.  I resolved my problem.  My USE_WINDDK function was problematic.

1 - PROBLEMATIC FUNCTION
def USE_WINDDK(env):
    winddkIncDir = env['WINDDK_ROOT']
    winddkLibDir = os.path.join(env['WINDDK_ROOT'], 'lib','wxp','i386')
    winddkLibs = ['hid.lib']
    env.Append(CPPPATH = winddkIncDir,
               LIBPATH = winddkLibDir,
               LIBS = winddkLibs)


2 - OK FUNCTION
def USE_WINDDK(env):
    winddkIncDir = [env['WINDDK_ROOT']]
    winddkLibDir = [os.path.join(env['WINDDK_ROOT'], 'lib','wxp','i386')]
    winddkLibs = ['hid.lib']
    env.Append(CPPPATH = winddkIncDir,
               LIBPATH = winddkLibDir,
               LIBS = winddkLibs)


I added my include path between brackets and it resolved the problem.  I do
not understand why because env.Dump for both version are the same



--
View this message in context: http://scons.1086193.n5.nabble.com/Include-path-not-added-to-cl-exe-tp40810p40811.html
Sent from the Users mailing list archive at Nabble.com.


More information about the Scons-users mailing list