Blob Blame History Raw
From 0a969f5376af248e76cbcee45c9bdb6463e18c05 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Thu, 24 Mar 2022 21:20:07 +0100
Subject: [PATCH 3/3] Add namespaces to LinkDef

Fixes error:

IncrementalExecutor::executeFunction: symbol '_ZN4TMVA12Experimental5SOFIE7PyTorch5ParseENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS9_ImSaImEESaISB_EE' unresolved while linking function '_GLOBAL__sub_I_cling_module_8'!
You are probably missing the definition of TMVA::Experimental::SOFIE::PyTorch::Parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::vector<unsigned long, std::allocator<unsigned long> >, std::allocator<std::vector<unsigned long, std::allocator<unsigned long> > > >)
Maybe you need to load the corresponding shared library?
Symbol found in '/builddir/build/BUILD/root-6.26.00/redhat-linux-build/lib/libPyMVA.so.6.26.00'; did you mean to load it with '.L /builddir/build/BUILD/root-6.26.00/redhat-linux-build/lib/libPyMVA.so.6.26.00'?
---
 tmva/pymva/inc/LinkDef.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tmva/pymva/inc/LinkDef.h b/tmva/pymva/inc/LinkDef.h
index 92da99a4f7..83145077dd 100644
--- a/tmva/pymva/inc/LinkDef.h
+++ b/tmva/pymva/inc/LinkDef.h
@@ -15,6 +15,8 @@
 #pragma link C++ class TMVA::MethodPyGTB+;
 #pragma link C++ class TMVA::MethodPyKeras+;
 #pragma link C++ class TMVA::MethodPyTorch+;
+#pragma link C++ namespace TMVA::Experimental::SOFIE::PyKeras;
 #pragma link C++ function TMVA::Experimental::SOFIE::PyKeras::Parse+;
+#pragma link C++ namespace TMVA::Experimental::SOFIE::PyTorch;
 #pragma link C++ function TMVA::Experimental::SOFIE::PyTorch::Parse+;
 #endif
-- 
2.35.1