From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Boris V. Guzhov" To: "Ecos discuss" Subject: [ECOS] Asserts Date: Thu, 15 Jun 2000 01:34:00 -0000 Message-id: <007201bfd6a3$95f24880$7601a8c0@borg.int.spb.ru> X-SW-Source: 2000-06/msg00152.html Hi All! I need to use eCos asserts. But I have some problems with ecos target library compiling. My host - Linux Redhat 6.0, my target - linux synthetic I did following: 1. ecosconfig new linux 2. ecosconfig check 3. ecosconfig tree 4. In ecos.scc file I have enabled CYGPKG_INFRA_DEBUG option. 5. make make -r -C kernel/v1_3_1 build make[1]: Entering directory `/home/borg/work/linux-synth/kernel/v1_3_1' i686-pc-linux-gnu-gcc -c -I/home/borg/work/linux-synth/install/include -I/u sr/local/src/eCos/ecos/packages/kernel/v1_3_1 -I/usr/local/src/eCos/ecos/pac kages/kernel/v1_3_1/src -I/usr/local/src/eCos/ecos/packages/kernel/v1_3_1/te sts -I. -I/usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/ -Wall -Wp ointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O 2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -Wp,-MD,src/mem/memfixed.tmp -o src/mem/kernel_memfixed.o /usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/memfixed.cxx In file included from /usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/memfixed.cxx:61: /home/borg/work/linux-synth/install/include/cyg/kernel/mempolt2.inl:401: prototype for `cyg_bool Cyg_Mempolt2::check_this(cyg_assert_class_zeal) const' does not match any in class `Cyg_Mempolt2' /home/borg/work/linux-synth/install/include/cyg/kernel/mempolt2.hxx:75: candidate is: bool Cyg_Mempolt2::check_this(cyg_assert_class_zeal) const /home/borg/work/linux-synth/install/include/cyg/kernel/mempolt2.inl: In method `cyg_bool Cyg_Mempolt2::check_this(cyg_assert_class_zeal) const': /home/borg/work/linux-synth/install/include/cyg/kernel/mempolt2.inl:401: template definition of non-template `cyg_bool Cyg_Mempolt2::check_this(cyg_assert_class_zeal) const' /usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/memfixed.cxx: At top level: /usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/memfixed.cxx:72: new declaration `cyg_bool Cyg_Mempool_Fixed::check_this(cyg_assert_class_zeal) const' /home/borg/work/linux-synth/install/include/cyg/kernel/memfixed.hxx:72: ambiguates old declaration `bool Cyg_Mempool_Fixed::check_this(cyg_assert_class_zeal) const' make[1]: *** [src/mem/memfixed.o.d] Error 1 make[1]: Leaving directory `/home/borg/work/linux-synth/kernel/v1_3_1' make: *** [build] Error 2 Why there are compiling errors? Thanks in advance. -- Boris Guzhov