Linker error for instantiating static data members of template class

Discussion in 'C++' started by Nita Rai, May 9, 2006.

  1. Nita Rai

    Nita Rai Guest

    I am getting 'error: too few template-parameter-lists' (GCC
    -3.4.2 ) for instantiating static data members of template class. When
    I prefixed template <> for the instantiation GCC accepted it.But linker
    is throwing erros saying undefined reference to the sysmbols.(where
    ever static members are refered)

    Does anyone know how to fix it??

    Nita
     
    Nita Rai, May 9, 2006
    #1
    1. Advertising

  2. Nita Rai

    mlimber Guest

    Nita Rai wrote:
    > I am getting 'error: too few template-parameter-lists' (GCC
    > -3.4.2 ) for instantiating static data members of template class. When
    > I prefixed template <> for the instantiation GCC accepted it.But linker
    > is throwing erros saying undefined reference to the sysmbols.(where
    > ever static members are refered)
    >
    > Does anyone know how to fix it??
    >
    > Nita


    Please post a *minimal* but *complete* code sample that demonstrates
    the problem and that we can copy and paste unmodified into our editors.
    Then we can probably help you fix it.

    Cheers! --M
     
    mlimber, May 9, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SaravanaKumar
    Replies:
    6
    Views:
    9,522
    Tony Morris
    Oct 19, 2004
  2. JFCM
    Replies:
    4
    Views:
    5,787
  3. Electric Co.
    Replies:
    3
    Views:
    437
    Electric Co.
    Aug 9, 2006
  4. Leslaw Bieniasz
    Replies:
    1
    Views:
    352
    mlimber
    Apr 5, 2006
  5. mati
    Replies:
    3
    Views:
    382
    =?ISO-8859-1?Q?Erik_Wikstr=F6m?=
    Jul 19, 2007
Loading...

Share This Page