Creating ROOT program with Visual Studio

Hi,

Which exact version of Visual Studio are you using?

And BTW, it’s much simpler to use the command line, especially for very simple projects. For example, with your source being main.cxx:

cl -nologo -MD -GR -EHsc -I%ROOTSYS%\include -FIw32pragma.h main.cxx /link -LIBPATH:%ROOTSYS%\lib libCore.lib libHist.lib libGraf.lib libGpad.lib

Cheers, Bertrand.