Undefined Reference to Copy Constructor (simple test code included)
Mumit Khan
khan@xraylith.wisc.EDU
Wed Jun 30 23:07:00 GMT 1999
On Fri, 25 Jun 1999, Brad Asztalos wrote:
> version: egcs-2.91.66
>
> The following code is verbatim from Meyers <<More Effective C++>> and
> compiles under a variety of C++ compilers except egcs. It's the old
> reference counting string implementation.
[ ... ]
You need to make the implementation of the template available to all
modules that need it when compiling. Simple way is to include the
template implementation in one of the headers where you define it.
Regards,
Mumit
More information about the Gcc-bugs
mailing list