I don’t know where this TWiki page is coming from, but you have to link against ROOT libraries, at least libCore and libHist, and possibly others (check for missing symbols)
Thank you for your prompt answer. Is this TWiki page official? I want to generate .root format data for analysis in my vc ++ dll library. Is there a configuration method that I can refer to? I am a newbie using root and I am not familiar with the root library. I see that many questions are answered by you. Thank you.
As I said, I don’t know where it is coming from, but you can follow the instructions
It’s really application dependent, and it also depends on your skills with Visual Studio and programming in general… But I think if you try to follow the Twiki instructions you should be able to achieve what you want.
But first of all, do you really need to create your own application? You can also simply use ROOT macros. A good starting point is the ROOT User Guides and Manuals page. You can also look at the ROOT tutorials, and their explanation in the ROOT 5 Primer
Yes, I need to include the root lib library in my program and use the tree and branch to output .root files for others to use. Like you said, lib is not found, I add #pragma comment (lib, “C: \ root_v5.34.36 \ lib \ libCore.lib”) #pragma comment (lib, “C: \ root_v5.34.36 \ lib \ libHist.lib”) #pragma comment (lib, “C: \ root_v5.34.36 \ lib \ libTMVA.lib”)
Compilation can pass, can view a curve now, thank you, I’m so glad