gSystem->Load() not works in macro

Please read tips for efficient and successful posting and posting code

_ROOT Version:6.22
Platform: Not Provided
Compiler: Not Provided

I am trying to load a .so library file, but it does not load properly while it is loading properly in root without putting in macro. Do you have any idea?

  | Welcome to ROOT 6.22/08               |
  | (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Mar 10 2021, 14:20:04                 |
  | From tags/v6-22-08@v6-22-08                                      |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |

root [0] gSystem->Load("RooUnfold/libRooUnfold")
(int) 0
root [1] RooUnfoldResponse response (40, -1, 1);
root [2] 

Output of running macro:

error: unknown type name 'RooUnfoldResponse'
RooUnfoldResponse response (40, -1, 1);

Try with R__LOAD_LIBRARY(RooUnfold/ and add the proper #include <RooUnfold.h> or whatever include is needed

Thank you. The problem solved with replacing with R__LOAD_LIBRARY(RooUnfold/

1 Like

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