#5 gcc whines

open
nobody
None
5
2002-12-07
2002-12-07
Anonymous
No

Method default arguments are also in .C files: they
should only be present in .h files

gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) flags
this as an error.

Discussion

  • little_matt
    little_matt
    2004-08-18

    Logged In: YES
    user_id=1100517

    GCC 3 is indeed alot more strict than previously. I quite
    agree... after attempting to correct many of the definitions, I
    gave up and opted to compile with older version instead...

    you need to compile with older gcc c++ and libraries...

    so clean up the install -
    make clean
    rm config.cache

    Using Fedora Core 2 -
    compat-gcc-7.3-2.96.118.i386.rpm
    compat-gcc-c++-7.3-2.96.118.i386.rpm
    compat-libstdc++-7.3-2.96.118.i386.rpm
    compat-libstdc++-devel-7.3-2.96.118.i386.rpm
    (and optionally ncurses and ncurses-devel)

    export CC=/usr/bin/gcc296
    export CXX=/usr/bin/g++296

    ./configure
    make