HP-UX 10.20 problems are solved and I can use my classes via
interactive ROOT inteface. I've done it laso for AIX 4.1. The new
problem has ariesed for our group with HP-UX
HP-UX atlhp-h6 B.10.10 A 9000/743 2008609071
which is workstation in VME crate. Unfortunately the system has installed
non-ANSI cc compiler and gcc/g++. I tried to build ROOT with my classes
on that station but no success. As I understand it's due to tha fact that
ROOT installation is built using HP-UX CC compiler and I tried to use g++.
The ROOT version is HP-UX 9.x version 1.03/09.
The error was:
g++ -g -Wall -O -I/usr/local/root/include -c main.C
g++ -g -Wall -O -I/usr/local/root/include -c Bubu.C
Generating dictionary ...
Note: operator new() masked 1c
Note: operator delete() masked 1c
Class Bubu: Streamer() not declared
Class Bubu: ShowMembers() not declared
g++ -g -Wall -O -I/usr/local/root/include -c Bubudict.C
Bubudict.C: In function `unsigned int G__get_sizep2memfuncBubudict()':
Bubudict.C:104: warning: `class G__Sizep2memfuncBubudict * this' might be
used uninitialized in this function
Linking buburoot ...
g++ -Wl,-E -O main.o Bubu.o Bubudict.o /usr/local/root/lib/*.sl
-L/usr/lib/Motif1.1 -lXm -lXt -lX11 -lm -lPW -lcurses -ldld -o buburoot
collect2: ld returned 1 exit status
/usr/bin/ld: Unsatisfied symbols:
TString::~TString(void)(code)
TStorage::ObjectAlloc(unsigned int)(code)
TROOT::~TROOT(void)(code)
TROOT::TROOT(char *, char *, void (**)(void))(code)
TRint::TRint(char *, int *, char **, void *, int)(code)
TString::operator=(char const *)(code)
*** Error exit code 1
So I come with two questions:
1. I see that the code compiled almost fine so the only problem is
the link phase, am I missing something in my setup ?
2. If the ROOT version MUST be G++ based for using with G++, I'm willing
to build the version of ROOT from sources. But as I know there are no
makefiles in the standard source distribution so I would appreciate
even some intermediate makefiles and basic compile flags and I hope
I will be able to do the rest.
I'm sorry if my questions disturb someone.
Thanks a lot for suggestions
With regards
Radovan