This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: pragma in 3.2.x
- From: "Scott A. Smith" <ssmith at magnet dot fsu dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 22 Oct 2002 09:51:28 -0400
- Subject: RE: pragma in 3.2.x
> You must have a corresponding #pragma instruction in you source file as
> well...
>
> Add the following line before your #include in PSet.cc
>
> #pragma implementation "PSet.h"
>
> That should fix your problem.
Thanks for the response, this has no effect of the link failure. In fact, in
my project all .cc files have #pragma implementation in them (although I did
not know one should include the interface
file name on that line?) Anyone else with an idea? Perhaps there is some
special ordering of where the pragma statements need to be? I have read in
the GCC manual that use of pragmas is discouraged, but then later it
disucusses #pragma interface and #pragma implementation as if one should use
them and that they have direct consequences on the way templated objects are
instantiated. I don't know how this could have any effect on the simple code
I presented earlier but I guess it does?
Thanks
Scott