# Creating ROOT program with Visual Studio

**URL:** <https://root-forum.cern.ch/t/creating-root-program-with-visual-studio/31962>\
**Category:** Newbie\
**Created:** [December 11, 2018, 1:22pm UTC](https://root-forum.cern.ch/t/creating-root-program-with-visual-studio/31962 "2018-12-11T13:22:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [December 11, 2018, 1:35pm UTC](https://root-forum.cern.ch/t/creating-root-program-with-visual-studio/31962/2 "2018-12-11T13:35:02Z")

</div>

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`:

```auto
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.

---

_[View the full topic](https://root-forum.cern.ch/t/creating-root-program-with-visual-studio/31962)._
