To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3313
3312  |  3314
Subject: 
Re: OS X Complier problems solved--now struggling with BrickOS
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 17 Jun 2003 11:51:25 GMT
Viewed: 
3033 times
  
On 6/17/03 2:39 PM, "Michael van der Kolff" <mvdk792@cse.unsw.edu.au> wrote:

In lugnet.robotics.rcx.legos, Rich Warren wrote: • <<snipped>>
/sw/brickos/bin/h8300-hitachi-hms-g++ -DCXX -O2 -fno-builtin
-fomit-frame-pointer -Wall -I/sw/brickos/source/brickos-0.2.6.10/include
-I/sw/brickos/source/brickos-0.2.6.10/include/lnp -I.
-I/sw/brickos/source/brickos-0.2.6.10/boot  -c c++.cpp -o c++.o
In file included from
/sw/brickos/source/brickos-0.2.6.10/include/conio.h:53,
                 from c++.cpp:34:
/sw/brickos/source/brickos-0.2.6.10/boot/config.h:124:8: warning: multi-line
string literals are deprecated
/sw/brickos/bin/h8300-hitachi-hms-ld -T ../boot/brickOS.lds -relax
-L/sw/brickos/source/brickos-0.2.6.10/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*)'
<<numerous duplicate errors snipped>>
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
rm c++.o
make: *** [all] Error 2

It seems to be a problem with the linker. But I'm not familiar enough with
the commands to be sure. Playing around with making some of the demos by
hand, I got namespace errors, if that helps (the variables from
dmotor.h--fwd and so forth--created problems in Motor.H). • <<snipped>>

-Rich-

Hmm... I just read your thing, and I realised I'm posting exactly the same
error, different platform (Linux).  Are you using g++-3.3? Or is it another
compiler?

Michael (van der Kolff, not Zapp :) )


I've gotten the same error with gcc 3.2.3 that I compiled and gcc 3.2.2 that
the other Michael compiled. I couldn't get gcc 3.3 to compile on my machine.

Running gcc -v I get the following responses:

(my version)
Reading specs from /sw/brickos/lib/gcc-lib/h8300-hitachi-hms/3.2.3/specs
Configured with: /sw/brickos/source/gcc-3.2.3/configure
--target=h8300-hitachi-hms --with-newlib --enable-languages=c,c++
--prefix=/sw/brickos -v
Thread model: single
gcc version 3.2.3

(Michael's version)
Reading specs from ./../lib/gcc-lib/h8300-hitachi-hms/3.2.2/specs
Configured with: ./configure --verbose --target=h8300-hitachi-hms
--prefix=/Users/michael/Projects/crossgcc/hitachi --enable-languages=c,c++
--enable-target-optspace --with-newlib
Thread model: single
gcc version 3.2.2


I'm not sure if that will help anyone else troubleshoot this or not. I'm
pleased to see that it's not just a Mac problem.

Can you build the other demos? I've built them by going into the demo folder
and typing "make helloworld.lx" and so forth. I'm not sure if that's the
correct procedure. They seem to compile fine, but when I download them to my
RCX, they do NOT work properly. For example, helloworld.lx displays
gibberish instead of words. Sound.lx produces a low droning instead of
"devil with a blue dress." So something's not right. The firmware messages
("off" and so forth) seem to display properly.

-Rich-



Message has 1 Reply:
  Re: OS X Complier problems solved--now struggling with BrickOS
 
(...) The only time(s) I encountered this type of issue were when I compiled the .srec with different set of compiler settings (or with a different set of header files) than what was used for compiling the Demo/Application code. For instance, if I (...) (21 years ago, 17-Jun-03, to lugnet.robotics.rcx.legos)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR