Dear all,
I am implementing an application in C++ using wxwidgets. I use Code::blocks 17.12 on Win10.
I would like to integrate in my application some code using roof function to perform data plotting, fit, etc.
For this reason, I downloaded root_v5.34.38.
I have some problems in embedding the rood functionalities in the program.
I have a folder containing root inside my application directory and in the code I refer to the libraries in the
root/include/ directory.
if I include one of the root libraries such as #include "TROOT.h"
I get the following error related to the TVersionCheck function.
[…]root_v5.34.38/root/include/TVersionCheck.h:34: undefined reference to TVersionCheck::TVersionCheck(int)' obj\Debug\DataStream.o: [...]root_v5.34.38/root/include/TVersionCheck.h:34: more undefined references to
TVersionCheck::TVersionCheck(int)’ follow
collect2.exe: error: ld returned 1 exit status
I have inserted root_v5.34.38\root\include in the: Project build option>Search directories>compiler
I trided to open root and use the interpreter to run some files .C and it works fine. Also, if I call root from my application using wxExecute, I am able to open it and run macros. However, I would like to avoid to run root everytime and embed the root functionalities in my application in order to simplify also the data transfer between functions.
I am quite knew with root and wxwidget, Could you please help me?
Thanks a lot!
Best,
Francesco
When
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided