Using RTLinux with GCC compiler 3.4
"Flores, Olya" <[email protected]>
| Newsgroups | gmane.linux.real-time.rtlinux.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, I am using RTLinux 3.2 with RedHat Linux 7.2. My RT modules are in C++ and so I use the rtl_cpp.h library. The rtmodules compiled fine with gcc 2.96. We have upgraded our gcc to version 3.4, ld version 2.15 and are now getting the linking errors for multiple symbol definitions, as well as for symbol size changes (see error list below). The rtl_cpp file contains conditional compilation #define statements, which should prevent these symbols from being redefined. I was wondering if you could let me know what is wrong in my configuration/compilation. Your help is greatly appreciated; thank you! Olya Flores. ------------------------------------------------------------------------ ------------------------- rt_modules_mch/schedule1553.o(.text+0x0): In function `operator new(unsigned int)': /usr/src/rtlinux/rtlinux/include/rtl_cpp.h:42: multiple definition of `operator new(unsigned int)' rt_modules_mch/../rt_modules_mch/common.o(.text+0x0):/usr/src/rtlinux/rt linux/include/rtl_cpp.h:42: first defined here rt_modules_mch/../rt_modules_mch/schedule1553.o(.text+0x1c): In function `operator new[](unsigned int)': /usr/src/rtlinux/rtlinux/include/rtl_cpp.h:46: multiple definition of `operator new[](unsigned int)' rt_modules_mch/../rt_modules_mch/common.o(.text+0x1c):/usr/src/rtlinux/r tlinux/include/rtl_cpp.h:46: first defined here rt_modules_mch/../rt_modules_mch/schedule1553.o(.text+0x38): In function `operator delete(void*)': /usr/src/rtlinux/rtlinux/include/rtl_cpp.h:50: multiple definition of `operator delete(void*)' rt_modules_mch/../rt_modules_mch/common.o(.text+0x38):/usr/src/rtlinux/r tlinux/include/rtl_cpp.h:50: first defined here rt_modules_mch/../rt_modules_mch/schedule1553.o(.text+0x4c): In function `operator delete[](void*)': /usr/src/rtlinux/rtlinux/include/rtl_cpp.h:54: multiple definition of `operator delete[](void*)' rt_modules_mch/../rt_modules_mch/common.o(.text+0x4c):/usr/src/rtlinux/r tlinux/include/rtl_cpp.h:54: first defined here rt_modules_mch/../rt_modules_mch/sc_telemetry.o(.text+0x0): In function `operator new(unsigned int)': /usr/src/rtlinux/rtlinux/include/rtl_cpp.h:42: multiple definition of `operator new(unsigned int)' rt_modules_mch/../rt_modules_mch/common.o(.text+0x0): first defined here rt_modules_mch/../rt_modules_mch/sc_telemetry.o(.text+0x20): In function `operator new[](unsigned int)': /usr/src/rtlinux/rtlinux/include/rtl_cpp.h:46: multiple definition of `operator new[](unsigned int)' rt_modules_mch/../rt_modules_mch/common.o(.text+0x1c):/usr/src/rtlinux/r tlinux/include/rtl_cpp.h:46: first defined here rt_modules_mch/../rt_modules_mch/sc_telemetry.o(.text+0x40): In function `operator delete(void*)': /usr/src/rtlinux/rtlinux/include/rtl_cpp.h:50: multiple definition of `operator delete(void*)' rt_modules_mch/../rt_modules_mch/common.o(.text+0x38):/usr/src/rtlinux/r tlinux/include/rtl_cpp.h:50: first defined here ld: Warning: size of symbol `_ZdlPv' changed from 19 in rt_modules_mch/common. o to 9 in rt_modules_mch/sc_telemetry.o rt_modules_mch/../rt_modules_mch/sc_telemetry.o(.text+0x50): In function `operator delete[](void*)': /usr/src/rtlinux/rtlinux/include/rtl_cpp.h:54: multiple definition of `operator delete[](void*)' rt_modules_mch/../rt_modules_mch/common.o(.text+0x4c):/usr/src/rtlinux/r tlinux/include/rtl_cpp.h:54: first defined here ld: Warning: size of symbol `_ZdaPv' changed from 19 in rt_modules_mch/../rt_modules_mch/common. o to 9 in rt_modules_mch/../rt_modules_mch/sc_telemetry.o ------------------------------------------------------------------------ ---------------------- _______________________________________________ Rtl mailing list [email protected] http://www2.fsmlabs.com/mailman/listinfo/rtl