-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The program can't compile (make doesn't found a library) [SOLVED] #1
Comments
I'll check it more closely when I have time, but first, do you use a UNIX
operating system?, also try running a hello world code, finally check that
te make files and th compilers an everything are in the right directories
…On Sunday, 9 July 2017, kaifuski ***@***.***> wrote:
I modified the code of myprogram2.cpp for locating the file
NeroNTuples.root and after I used the command make but it shows the next
error
g++ -g -Wall -fPIC -Wno-deprecated -ggdb -pthread -m64 -I/usr/include/root
-Iaux -c -o myprogram2.o myprogram2.cpp myprogram2.cpp:13:19: fatal error:
TROOT.h: No existe el fichero o el directorio #include <TROOT.h> ^
compilation terminated. <builtin>: recipe for target 'myprogram2.o' failed
make: *** [myprogram2.o] Error 1
I have the file TROOT.h and all the libraries in /etc/root/include.
To use the command root I had to edit the file .bashrc adding the next line
export PATH=$PATH:/etc/root/bin
How can I link the libraries of root with the command make?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ATg0GR71YCwicU6VeCr8X9xoNdS9qelyks5sMPkCgaJpZM4OSGft>
.
|
I use Debian 8.8 |
The solution was to change |
Thanks for letting me know what the solution was.
Just one question, do you work with Isabel?, are you a summer student at
CERN?, or are you just learning ROOT for other reasons?
…On Mon, Jul 10, 2017 at 6:37 PM, kaifuski ***@***.***> wrote:
The solution was to change export PATH=$PATH:/etc/root/bin in .bashrc for
the next lines:
export ROOTSYS=/etc/root export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH export
PATH=$ROOTSYS/bin:$PATH
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATg0Gei_YfVvNzi6IIPRQrBPKxa6zpQYks5sMrWvgaJpZM4OSGft>
.
|
I am working with Isabel. |
I modified the code of myprogram2.cpp for locating the file NeroNTuples.root and after I used the command make but it shows the next error
g++ -g -Wall -fPIC -Wno-deprecated -ggdb -pthread -m64 -I/usr/include/root -Iaux -c -o myprogram2.o myprogram2.cpp myprogram2.cpp:13:19: fatal error: TROOT.h: No existe el fichero o el directorio #include <TROOT.h> ^ compilation terminated. <builtin>: recipe for target 'myprogram2.o' failed make: *** [myprogram2.o] Error 1
I have the file TROOT.h and all the libraries in /etc/root/include.
To use the command root I had to edit the file .bashrc adding the next line
export PATH=$PATH:/etc/root/bin
How can I link the libraries of root with the command make?
The text was updated successfully, but these errors were encountered: