Make a Visual Studio 2013 project including root

I’m going to make a C++ project that include the root library used mainly for plotting but i have serious trouble on starting it. I downloaded the latast version for windows (Visual Studio 2013, the exe debug from here https://root.cern.ch/content/release-53436).

I made a simple gui.c file using TGuiBuilder and i saved the file as gui.cpp

I added C:\root_v5.34.36\bin , C:\root_v5.34.36\lib, C:\root_v5.34.36\include to environment variables.

I moved all #include to stdafx.h file but I currently have an error when i try to compile

fatal error C1083: Cannot open include file: 'TGDockableFrame.h': No such file or directory

TGDockableFrame.h is present in C:\root_v5.34.36\include

Thanks

Which environment variables?
You have to add C:\root_v5.34.36\include to the Visual Studio include search path, C:\root_v5.34.36\lib to the Visual Studio library directories, and then you will have to add the necessary ROOT libraries to your solution

Cheers, Bertrand.

Path system variable,

Adding to the project the two path (as mentioned here solved the problem.

Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.