Subject:
|
Error linking c++ with gcc 3.3
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Tue, 17 Jun 2003 04:39:02 GMT
|
Viewed:
|
3442 times
|
| |
| |
Hi, I'm having a slight problem building the c++ demos with gcc-3.3. (I had to
do a tiny patch against a few files to overcome the fact that multiline strings
are now not supported). But when it comes to building the c++ demos, I get the
following stuff:
<snip>
/usr/bin/h8300-hitachi-hms-g++ -DCXX -O2 -fno-builtin -fomit-frame-pointer -Wall
-I/var/home/michael2/download/RCX/brickos-20030617/brickos/include
-I/var/home/michael2/download/RCX/brickos-20030617/brickos/include/lnp -I.
-I/var/home/michael2/download/RCX/brickos-20030617/brickos/boot -c c++.cpp -o
c++.o
/usr/bin/h8300-hitachi-hms-ld -T ../boot/brickOS.lds -relax
-L/var/home/michael2/download/RCX/brickos-20030617/brickos/lib c++.o -lc -lmint
-lfloat -lc++ -o c++.dc1 --oformat coff-h8300 -Ttext 0xb000
c++.o(.text+0x30):c++.cpp: undefined reference to `operator new(unsigned)'
c++.o(.text+0x42):c++.cpp: undefined reference to `operator delete(void*)'
c++.o(.text+0x4a):c++.cpp: undefined reference to `operator new(unsigned)'
c++.o(.text+0x5c):c++.cpp: undefined reference to `operator delete(void*)'
c++.o(.text+0x30):c++.cpp: undefined reference to `operator new(unsigned)'
c++.o(.text+0x42):c++.cpp: undefined reference to `operator delete(void*)'
c++.o(.text+0x4a):c++.cpp: undefined reference to `operator new(unsigned)'
c++.o(.text+0x5c):c++.cpp: undefined reference to `operator delete(void*)'
c++.o(.text+0x30):c++.cpp: undefined reference to `operator new(unsigned)'
c++.o(.text+0x42):c++.cpp: undefined reference to `operator delete(void*)'
c++.o(.text+0x4a):c++.cpp: undefined reference to `operator new(unsigned)'
c++.o(.text+0x5c):c++.cpp: undefined reference to `operator delete(void*)'
c++.o(.rodata+0x18):c++.cpp: undefined reference to `vtable for
__cxxabiv1::__si_class_type_info'
c++.o(.rodata+0x1e):c++.cpp: undefined reference to `vtable for
__cxxabiv1::__si_class_type_info'
c++.o(.rodata+0x40):c++.cpp: undefined reference to `vtable for
__cxxabiv1::__class_type_info'
make[1]: *** [c++.dc1] Error 1
</snip>
Does anyone know what this linker error actually means?
Michael
|
|
Message has 1 Reply: | | Re: Error linking c++ with gcc 3.3
|
| (...) You should add -fno-rtti -fno-exceptions to the CXXFLAGS in Makefile.common. To get rid of the operator new/delete errors you can replace lib/c++/stub.c with a stub.cpp containing the following. Don't forget to update the Makefile. This works (...) (21 years ago, 18-Jun-03, to lugnet.robotics.rcx.legos)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|