Skip to content

Commit 81ecf5c

Browse files
committedJan 19, 2016
load class without a dictionary in root6.
1 parent 47c8671 commit 81ecf5c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'''Shows how to load a C++ class without dictionary in root 6.'''
2+
3+
from ROOT import gSystem, gROOT
4+
import os
5+
os.chdir('build/')
6+
gROOT.ProcessLine('#include "hello.h"')
7+
gSystem.Load('libhello')
8+
9+
from ROOT import Hello
10+
11+
hello = Hello()
12+
hello.Print()

0 commit comments

Comments
 (0)
Please sign in to comment.