I'm new at Linux environment developpment, I just installed itpp library on my ubuntu 13.10 following these commands :
$cd build
$cmake ..
$make
$make install
As I'm not very good at linux environment development, I want to know how to compile and execute a c++ itpp program because I tried '$g++ test.cpp -o test', a 'undefined reference to...' error appears.
please help me with commands to compile and run my programs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Bogdan.
First of all thanks for your solution.
When I tried your command there was no error such 'undefined reference to', but when I try to run it by './test' another error appears :
./test: error while loading shared libraries: libitpp.so.8: cannot open shared object file: No such file or directory
how can I deal with this situation ?
And thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am sorry for bothering again. I am getting exactly the same error message. I have done all the steps in the thread. I don't get any compilation errors but I get the error when I execute the output file:
error while loading shared libraries: libitpp.so.8: cannot open shared object file: No such file or directory
I tried both commands, and I get the same error message with both.
g++ exp_itpp.cpp -I$ITPP_HOME/include -L$ITPP_HOME/lib -litpp
g++ itpp-config --cflags -o example exp_itpp.cpp itpp-config --libs
How can I overcome this issue?
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks so much my friend, it seems that it's working properly, even if there is some programs having some issues but the essential that some of them works at least.
Best Regards.
Elmehdi
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone.
I'm new at Linux environment developpment, I just installed itpp library on my ubuntu 13.10 following these commands :
$cd build
$cmake ..
$make
$make install
As I'm not very good at linux environment development, I want to know how to compile and execute a c++ itpp program because I tried '$g++ test.cpp -o test', a 'undefined reference to...' error appears.
please help me with commands to compile and run my programs.
Hi
You need to compile by providing the path to the header file and the IT++ library with its path:
g++ test.cpp -o test -I/usr/local/include -L/usr/local/lib -litpp
regards
Bogdan
Hello Bogdan.
First of all thanks for your solution.
When I tried your command there was no error such 'undefined reference to', but when I try to run it by './test' another error appears :
./test: error while loading shared libraries: libitpp.so.8: cannot open shared object file: No such file or directory
how can I deal with this situation ?
And thanks.
Check the path where you installed IT++ library: either /usr/local/lib or /usr/lib and the installed libraries
In /usr/local/lib there is 3 files "libitpp.so.8.2.1", "libitpp.so.8" and "libitpp.so", I think these should be the library files ?
that's a problem, Whenever I try to run m program (./test) the same error appears !
do as root
ldconfig /usr/local/lib
then restart your terminal
It works for me, thanks a lot.
Hi,
I am sorry for bothering again. I am getting exactly the same error message. I have done all the steps in the thread. I don't get any compilation errors but I get the error when I execute the output file:
I tried both commands, and I get the same error message with both.
g++ exp_itpp.cpp -I$ITPP_HOME/include -L$ITPP_HOME/lib -litpp
g++
itpp-config --cflags
-o example exp_itpp.cppitpp-config --libs
How can I overcome this issue?
Thanks in advance.
you need to set the library search path to the location where libitpp.so is installed: use either LD_LIBRARY_PATH or ldconfig application
Done, working fine at last.
Many many thanks.
Regards.
thanks so much my friend, it seems that it's working properly, even if there is some programs having some issues but the essential that some of them works at least.
Best Regards.
Elmehdi