ROOT Version: 6.28 Platform: Windows 11 Compiler: Cling, gnu available
When a loade my program with ‘.L program.cpp+’ it seems to work find, but whenI try to execute it it doesn’t fined. it. ‘.L’ w/o ‘+’ works fins. But when I try to execute wiht ‘+’ applied ROOT complains. E.g.,
root [1] simu2XDStarLNu(100)
input_line_10:2:3: error: use of undeclared identifier 'simu2XDStarLNu'
(simu2XDStarLNu(100))
I pretty sure this worked when I used root on Linux long ag…
It seems the loading did not work properly. Can you provide a small example reproducing the problem ? as it is on windows may be @bellenot may have some ideas.
Well, as you can see, for some reason the build fails, so since the DLL is not created, ROOT cannot execute the function. Can you provide the information about your system, the version of ROOT and way you installed it, and how you started it, and from where (command prompt, command prompt for Visual Studio, …)?
I was supprised it didn’t put in ‘Program Files’ though things are a little difficult to exectue from the ‘PowerShell’ as it is confused by the blank in directory name (have to put in in “”).
Can you make sure you have Visual Studio and its Desktop development with C++ workload properly installed, and then start ROOT from a x86 Native Command Prompt for VS 2022
I have Visual c++ installed. I’ve never used it. As a pre-GUI person, I find it confusing. I’m not sure how to do what you suggest. I start root from the command line in PowerShell.
That worked. I found my way to a developer ‘PowerShell’ w/o getting too lost in the Goo. I guess in this context it is using Visual C++ to do the compliatiion.