root doesn't recognize the new compiled classes. When I use CC instead of g++
that works perfectly.
CC -O -KPIC -I/work1/analyse/root/include -DSunOS -I. -c complex.cc
CC -O -KPIC -I/work1/analyse/root/include -DSunOS -I. -c complexCint.cc
CC -g -G *.o -o libpp.so
Now I have some g++ specific codes (using
the const cast operator) that I want to add, so I still want to use g++. Am I
giving the wrong options, or do I have to use one compiler through all the
steps? I also tried to use g++ to produce the shared library instead but it
don't know why it doesn't work, it gives a a.out file.
g++ -g -Wl,-soname,libpp.so -shared -msparc *.o
sincerely,
Thierry Auger.