I am using Sun SPARComper C++ 4.1 and having some trouble with
multiple template Databases and wonder anyone knows a workaround:
I have a group of code with its template instantiation in
and another group of code with
Both groups have #include its Template definition from /dir3
(and the template implementation *.cc file also in /dir3)
Now When I compile my main.cc in /dir4 linking code from
/dir with -ptv and -ptr/dir1 -ptr/dir2 turned on, It
picks up /dir2/Templates.DB for some instantiation and ignores
/dir3/Templates.DB no matter how to arrange -ptr on command line.
However, I notice that if I make clean (ptclean) /dir2 & /dir3,
then make /dir3 first to build Templates.DB, /dir3/Templates.DB
contains instantiations that appeared in /dir2/Templates.DB.
Then I make /dir2, and then make /dir4. It picks up /dir3