Details
-
New Feature
-
Status: Closed (View Workflow)
-
High
-
Resolution: Fixed
-
6.13/02
-
None
-
OsX and CentOS
Description
The following macro:
void draw_file() {
|
using namespace ROOT;
|
auto canvas = Experimental::TCanvas::Create("Canvas Title");
|
canvas->SaveAs("th1.png");
|
}
|
gives:
Processing draw_file.cxx...
|
IncrementalExecutor::executeFunction: symbol '_ZN4ROOT12Experimental7TCanvas6SaveAsERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_8functionIFvbEEE' unresolved while linking [cling interface function]!
|
You are probably missing the definition of ROOT::Experimental::TCanvas::SaveAs(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::function<void (bool)>)
|
Maybe you need to load the corresponding shared library?
|
imaccouet:v7canv couet$ [49625:94039:0424/104001.269317:ERROR:indexed_db_backing_store.cc(784)] IndexedDB Consistency Error: UPGRADING_SCHEMA_CORRUPTED_BLOBS
|
if instead of SaveAs we do canvas->Show(); then the symbol (Show) is found. Show is defined at the same level of SaveAs. Adding R__LOAD_LIBRARY(libROOTGpadv7); in the macro fixes the issue. but this extra library load is not needed for Show.