This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with explicit template instanciation
- From: "laurent dot marzullo at laposte dot net" <laurent dot marzullo at laposte dot net>
- To: "eljay" <eljay at adobe dot com>
- To: "gcc-help" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 16 Dec 2002 18:01:50 +0100
- Subject: Re: Problem with explicit template instanciation
Yes, the problem is still there:
I've defines:
namespace CDK
{
ExcpManip Param( char const* const& , char const*
const&);
}
And I've the following link error:
Undefined
Symbol
CDK::ExcpManip CDK::Param<char[8], char[7]>( char [8] const&,
char [7] const&)
-----------------------------------------------------------
When I'm doing a 'nm --demangle' on my static library; here
what nm print:
00000000 W CDK::ExcpManip CDK::Param<char const*, char const*>
(char const* const&, char const* const& )
It also show the same thing for those which works:
00000000 W CDK::ExcpManip CDK::Param<int,int>( int const& , int
const & )
-----------------------------------------------------------
One other things ...
I'm on Solaris 8 (intel).
Regards
Laurent Marzullo
> Hi Laurent,
>
> Does the problem still show up when you define...
>
> namespace CDK
> {
> //...yada yada yada...
> ExcpManip Param( char const * const& , char const *
const& );
> }
>
> The "char const * const" should handle string literals.
Whereas "char*
> const" isn't quite right for string literals.
>
> --Eljay
>
>
Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"