I’m new to ROOT and I have recently set it up on my own Linux machine (Ubuntu 14.04) because I need ROOT and its libraries to build some programs for data analysis.
I understand that this means that g++ isn’t able to find ROOT libraries, but I thought that the option root-config --glibs should give to g++ the address to all requred libraries.
I know that my problem is to find the right options to give to g++ to compile, because running the Makefile in $ROOTSYS/test, my computer compiled the test code properly and was able to produce the executable, but looking at the test/Makefile I wasn’t able to understand the procedure.
Thanks in advance, I searched a lot on forums and internet and I wasn’t able to find anything that could help me
But I don’t understand the logic of the command I typed (where do I call the compiler?).
How do I modify it to add other libraries? In my project I will use Opencv and boost libraries too
I solved my problem and just for completeness (in case anybody will ever have my same doubt), I want to point out that typing:
I got the right compilation command for my computer settings.
I just added the other headers and libraries I needed for my project keeping the same order.
I solved my problem and just for completeness (in case anybody will ever have my same doubt), I want to point out that typing:
I got the right compilation command for my computer settings.
I just added the other headers and libraries I needed for my project keeping the same order.[/quote]
What if I have three files h1.h, h1.cpp and macro.cpp ? How do I link them ? Suppose I have already compiled and created h1.o and macro.o.
Actually, it should be … add the list of your own source code files (if any), your own object files (if any) and your own libraries (if any) BEFORE the list which is generated by root-config --glibs.