Hi Thierry, it looks like CC is not compatible with g++ on Solaris. The Solaris ROOT version is compiled with CC. Once we come with the ROOT Makefiles (real soon now) you can built your own Solaris g++ version. Cheers, Fons. Thierry Auger wrote: > > hello everybody, > I am trying to produce a small shared library for root. > When I compile the code and the dictionnary with g++ and link with CC: > g++ -O -I/work1/analyse/root/include -fPIC -I. -c complex.cc > g++ -O -I/work1/analyse/root/include -fPIC -I. -c complexCint.cc > CC -g -G *.o -o libpp.so > > 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. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET