The application is needed to run on visual studio environment?


A application is finished using root on windows platform, but the application only run well in visual studio terminal or run the visual studio environment firstly, like this:

call “E:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat”

when running the application directly, the errors occured:

"Plotting spectrum:
input_line_1:1:10: fatal error: ‘new’ file not found
#include
^~~~~
Replaced symbol at_quick_exit cannot be found in JIT!
Replaced symbol __dllonexit cannot be found in JIT!
Replaced symbol _onexit cannot be found in JIT!
input_line_3:37:10: fatal error: ‘string’ file not found
#include
^~~~~~~~
IncrementalExecutor::executeFunction: symbol ‘?gCling@@3PEAVInterpreteruntime@cling@@3PEAVInterpreter@2@EA’ unresolved while linking [cling interface function]!
You are probably missing the definition of class cling::Interpreter * __ptr64 __ptr64 cling::runtime::gCling
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘?gCling@@3PEAVInterpreteruntime@cling@@3PEAVInterpreter@2@EA’ unresolved while linking [cling interface function]!
You are probably missing the definition of class cling::Interpreter * __ptr64 __ptr64 cling::runtime::gCling
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘?gCling@@3PEAVInterpreteruntime@cling@@3PEAVInterpreter@2@EA’ unresolved while linking [cling interface function]!
You are probably missing the definition of class cling::Interpreter * __ptr64 __ptr64 cling::runtime::gCling
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘?gCling@@3PEAVInterpreteruntime@cling@@3PEAVInterpreter@2@EA’ unresolved while linking [cling interface function]!
You are probably missing the definition of class cling::Interpreter * __ptr64 __ptr64 cling::runtime::gCling
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘?gCling@@3PEAVInterpreteruntime@cling@@3PEAVInterpreter@2@EA’ unresolved while linking [cling interface function]!
You are probably missing the definition of class cling::Interpreter * __ptr64 __ptr64 cling::runtime::gCling
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘?gCling@@3PEAVInterpreteruntime@cling@@3PEAVInterpreter@2@EA’ unresolved while linking [cling interface function]!
You are probably missing the definition of class cling::Interpreter * __ptr64 __ptr64 cling::runtime::gCling
Maybe you need to load the corresponding shared library?
Info in TCanvas::Print: png file output/figure_Neutron_Fluence_Rate_Spectrum.png has been created
Warning in TCanvas::Constructor: Deleting canvas with same name: c1
IncrementalExecutor::executeFunction: symbol ‘?gCling@@3PEAVInterpreteruntime@cling@@3PEAVInterpreter@2@EA’ unresolved while linking [cling interface function]!
You are probably missing the definition of class cling::Interpreter * __ptr64 __ptr64 cling::runtime::gCling
Maybe you need to load the corresponding shared library?
Info in TCanvas::Print: png file output/figure_Neutron_Fluence_Rate_Spectrum_with_Error.png has been created“

what cause this error?

ROOT Version: 6.32.02
Platform: windows 10
Compiler: MSVC v143 in visual studio 2022


Hi @newconcept1979 thanks for reaching out!
@bellenot might be able to help

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

Sorry for the late answer… And yes, that’s a requirement. ROOT (Cling) needs to access the include PATH from the Visual Studio environment