| Version 1.9 Build 803
|
|
Next: Checking in your templates
Up: NOTE 196 Notes on using the g++ compiler
Previous: Do it yourself templates (creating a templates file)
When linking the names of the missing class/function instantiations may
be printed in a mangled form.
To demangle them save the g++ output in a
file and use /usr/local/gnu/bin/c++filt.
An example (Using csh) is:
gmake test.cc >&! g++.out
/usr/local/gnu/bin/c++filt < g++.out
or using sh
gmake test.cc 2>&1 | /usr/local/gnu/bin/c++filt | tee missing-templates
The c++filt command will translate the following mangled name
getArray__Ct11MaskedArray1Z14PointComponen
to
MaskedArray<PointComponent>::getArray(void)
and because the getArray function is a member function of the MaskedArray
class we need to instantiate the whole class
(MaskedArray<PointComponent>)
Next: Checking in your templates
Up: NOTE 196 Notes on using the g++ compiler
Previous: Do it yourself templates (creating a templates file)
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2004-08-28