hi, all rooters,
it is no problem to run the root script in the attachment with the command
“root main.C” on the command line of bash.
now i want to compile the script with the following command:
g++ -o main main.C -Iroot-config --incdir root-config --glibs .
the following warings appear:
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from main.cpp:1:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the <X.h> header for C++ includes, or instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
and the errors display when i run the executable “main”:
main: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory
why is it?
BTW: my platform is Debain GNU/Linux and g++ version is 3.3.3.
main.C (640 Bytes)