Home | News | Documentation | Download

Running root programs with VS


#1
Error	C4996	'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'	rootinvs	c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\xutility	2483

I tried to run root with Visual Studio following the tutorial here https://twiki.cern.ch/twiki/bin/view/Sandbox/ROOTandVisualStudio

However, I receive the error mentioned above. Any help?


#2

Well, I don’t know where this page is coming from, but it is way too old… What do you want to achieve exactly?


#3

I was curious if root macros could be built and run using VS the same way one does C. That’s when I found that page. The usual way would be to write the macro in an editor then .L in a root session and so on.


#4

Sure it is possible, but it is much more complicated…


#5

Oh! Could you redirect me to any tutorial ?


#6

Sorry, but I don’t know any, and I’m afraid there is none…