[comp.sys.next] Using cc++ with subprojects

scott@erick.gac.edu (Scott Hess) (02/22/91)

I've been trying to get a fairly large program to work using cc++ (g++,
of course).  I'm having a problem with the collect program, though.
It's segmentation faulting.

The neato thing is that I don't use any c++ stuff, yet.  All I did
was convert the c compiler over to cc++, and extern out the required
header files, and fix various assigns and the like to explicit
coercing, rather than implicit.  So, there really shouldn't be a problem,
as at least one app (CalculatorLab++) works just fine.  The only real
difference I can see, besides size considerations, is that my program
uses subprojects.

Why do I think this?  Subprojects are done using a different type
of object file, I believe, with multiple object files linked together
before the last "real" link.  I assume that collect is supposed to
go through and look for stuff in these files, and maybe it's not
set up to handle these different object files?  Or something?

Has anyone gotten cc++ to work with subprojects?  If you haven't,
please drop me a line so I can at least know I'm not seeing something
totally different from that . . .

Later,
--
scott hess                      scott@gac.edu
Independent NeXT Developer	GAC Undergrad
<I still speak for nobody>
"Tried anarchy, once.  Found it had too many constraints . . ."
"Buy `Sweat 'n wit '2 Live Crew'`, a new weight loss program by
Richard Simmons . . ."