Menu

#3 compilation error in AuSampleValues.cc

open
nobody
None
5
2005-01-28
2005-01-28
Pinky
No

I'm use Gentoo Linux with:
gcc (GCC) 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110,
ssp-3.4.3.20050110-0, pie-8.7.7

and my friend use Fedora Core with gcc 3.4.2, and
produce the same error during compilation

compilation produce the error:
AuSampleValues.cc:24: error: too few
template-parameter-lists
AuSampleValues.cc:24: error: expected `,' or `;' before
'=' token
AuSampleValues.cc:25: error: too few
template-parameter-lists
AuSampleValues.cc:25: error: expected `,' or `;' before
'=' token
AuSampleValues.cc:28: error: too few
template-parameter-lists
AuSampleValues.cc:28: error: expected `,' or `;' before
'=' token
AuSampleValues.cc:29: error: too few
template-parameter-lists
AuSampleValues.cc:29: error: expected `,' or `;' before
'=' token
AuSampleValues.cc:32: error: too few
template-parameter-lists
AuSampleValues.cc:32: error: expected `,' or `;' before
'=' token
AuSampleValues.cc:33: error: too few
template-parameter-lists
AuSampleValues.cc:33: error: expected `,' or `;' before
'=' token
AuSampleValues.cc:36: error: too few
template-parameter-lists
AuSampleValues.cc:36: error: expected `,' or `;' before
'=' token
AuSampleValues.cc:37: error: too few
template-parameter-lists
AuSampleValues.cc:37: error: expected `,' or `;' before
'=' token
make[2]: *** [AuSampleValues.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/steghide-0.5.1/work/steghide-0.5.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/steghide-0.5.1/work/steghide-0.5.1'
make: *** [all] Error 2

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I think gcc v3.4+ uses stricker rules when it comes to the
    templating used here. If you add "template <> " to the start
    of each line in the file AuSampleValues.cc it seems to
    compile ok.
    Nikki Small
    nikkismall@iinet.net.au

     
  • Nobody/Anonymous

    Logged In: NO

    hey developers this bug was submitted back in '05.. shoddy code ;-) get with it ;-)
    to resolve add template <> before each line that complains. i.e.

    #include "AuSampleValues.h"

    // AuMuLawSampleValue
    template <> const BYTE AuMuLawSampleValue::MinValue = 0 ;
    template <> const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ;

    // AuPCM8SampleValue
    template <> const SBYTE AuPCM8SampleValue::MinValue = SBYTE_MIN ;
    template <> const SBYTE AuPCM8SampleValue::MaxValue = SBYTE_MAX ;

    // AuPCM16SampleValue
    template <> const SWORD16 AuPCM16SampleValue::MinValue = SWORD16_MIN ;
    template <> const SWORD16 AuPCM16SampleValue::MaxValue = SWORD16_MAX ;

    // AuPCM32SampleValue
    template <> const SWORD32 AuPCM32SampleValue::MinValue = SWORD32_MIN ;
    template <> const SWORD32 AuPCM32SampleValue::MaxValue = SWORD32_MAX ;

     
  • Nobody/Anonymous

    This appears with v 0.5.1 with both AuSampleValues.cc and AuData.h, failing out with message 'too few template-parameter-lists'. I'm running a modified LFS-6.3 using gcc 4.1.2. Prepending 'template <> ' to the complaining lines seems to fix, but doing this by hand is a bit if a pain.

     

Log in to post a comment.

MongoDB Logo MongoDB