This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)"




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]