[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gcc 2.95 C++ problem
- Date: Wed, 4 Aug 1999 11:53:33 -0500 (CDT)
- From: joel at OARcorp.com (joel at OARcorp.com)
- Subject: gcc 2.95 C++ problem
Weirder and weirder. librtems++ compiles for some targets:
/usr2/tools_install/gcc-2.95-binutils-2.9.1-newlib-1.8.1-0899/i386-rtems/bin/i386-rtems-g++
-B../../../../../pc386/lib/ -specs bsp_specs -qrtems
-I../../../../../pc386/lib/include/networking -g -Wall -ansi -fasm -c -o
o-pc386/rtemsEvent.o
../../../../../../rtems-current/c/src/lib/librtems++/rtemsEvent.cc
But fails for numerous other targets:
/usr2/tools_install/gcc-2.95-binutils-2.9.1-newlib-1.8.1-0899/powerpc-rtems/bin/powerpc-rtems-g++
-B../../../../../psim/lib/ -specs bsp_specs -qrtems -mcpu=603
-I../../../../../psim/lib/include/networking -g -Wall -ansi -fasm -c -o
o-psim/rtemsEvent.o
../../../../../../rtems-current/c/src/lib/librtems++/rtemsEvent.cc
In file included from
../../../../../psim/lib/include/rtems++/rtemsEvent.h:26,
from
../../../../../../rtems-current/c/src/lib/librtems++/rtemsEvent.cc:21:
../../../../../psim/lib/include/rtems++/rtemsTask.h:110: declaration of
`const int rtemsTask::rtemsTask'
../../../../../psim/lib/include/rtems++/rtemsTask.h:95: conflicts with
previous declaration `void rtemsTask::rtemsTask(int)'
.
It looks like it failed on nearly every target (i960, m68k, mips, powerpc,
sh, sh-elf, and sparc). But it compiled on the hppa1.1 and i386.
Anyone want to guess at this one. :)
--joel