threads.C and visual 2008

Hello ,
I would like to try the « threads.C » file under XP. Thing that is a piece of cake with other OS but I have to compile with XP. I have installed Visual 2008.
I tryed to set up the include and library path in the environment variables. But it seems that link doesn’t work when I try to compile with ACLIC.

*** Interpreter error recovered ***
Error: cannot open file “DllImport.h” (tmpfile)(2)
*** Interpreter error recovered ***
root [0] .x threads.C++
Info in TWinNTSystem::ACLiC: creating shared library C:\root\macros\threads_C
c:\root\include\Rtypes.h(27) : fatal error C1083: Cannot open include file: ‘Dl
Import.h’: No such file or directory
Error: external preprocessing failed. (0)
!!!Removing C:\root\macros\threads_C_ACLiC_dict.cxx C:\root\macros\threads_C_AC
iC_dict.h !!!
Error: C:\root\bin\rootcint: error loading headers…
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
Error: Function threads() is not defined in current scope (0)
*** Interpreter error recovered ***

I think something is missing in my knowledge.
I would like to know the steps to follow to have root working with XP.
Thanks all.


Try to open a “Visual Studio 2008 Command Prompt” (from the Visual Studio Tools menu) or execute
"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" to properly set the environment variables for Visual Studio.

Cheers, Bertrand.