| | realloc in legos(brickOS)
|
|
can someone please help this guy? ive been out of the loop for some time and really dont know if anyone has made any realloc functions for legos (working in 0.2.6). below is the email he sent me. his email address is: renespanw@hotmail.com regards (...) (21 years ago, 23-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Error linking c++ with gcc 3.3
|
|
No, I'm sorry, it doesn't seem to quite work. But it does get rid of the 3 errors at the bottom - Now it's just the operator new/delete stuff. I replaced the stub.c with the thing below, made libc++.a, and just make in lib/c++, and then go to demo (...) (21 years ago, 19-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | 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)
|
|
| | 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)
|
|
| | Re: OS X Complier problems solved--now struggling with BrickOS
|
|
(...) As for this one, I thought I linked the library statically so you wouldn't require it. Oh well, I'll fix that and let people know when I've updated it. You shouldn't need to install the libraries to use the tools. Michael (Zapp not van der (...) (21 years ago, 17-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: OS X Complier problems solved--now struggling with BrickOS
|
|
(...) <<snipped>> (...) <<snipped>> (...) 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 (...) (21 years ago, 17-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: OS X Complier problems solved--now struggling with BrickOS
|
|
(...) No, they aren't problems in your end, and no, they're also not gcc's fault. LegOS uses a now unsupported extension to C: multi-line strings. The way they can be made to work is by inserting \n\ on the end of the offending lines. I did this to (...) (21 years ago, 17-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: OS X Complier problems solved--now struggling with BrickOS
|
|
In lugnet.robotics.rcx.legos, Rich Warren wrote: ... (...) Well, it must be something weird then, what compiler *is* Michael's compiler? (gcc 3.2.3? what?) After all, all cross-compilers should work about the same.... It's a different compiler to (...) (21 years ago, 17-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: OS X Complier problems solved--now struggling with BrickOS
|
|
You know, it doesn't matter how long I wait before sending out a question... I figured out the trouble with firmdl3. I'd assumed the black plug in the USB port was the IR Tower, which I'd plugged in earlier today. However, my wife had been (...) (21 years ago, 16-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: OS X Complier problems solved--now struggling with BrickOS
|
|
In lugnet.robotics.rcx.legos, Rich Warren wrote: ... (...) 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 (...) (21 years ago, 17-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Error linking c++ with gcc 3.3
|
|
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 (...) (21 years ago, 17-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: OS X Complier problems solved--now struggling with BrickOS
|
|
(...) You know, I think there's some cosmic law. Just after hitting the send key, I'll almost always realize my question was stupid. Looking at the errors I was getting, I noticed that it was the utilities that you'd already created. firmdl3 has the (...) (21 years ago, 16-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Varying the output voltage?
|
|
(...) The power motors that come with the RIS are very efficient, so the load is very light and speed changes very little. Then of course it depend on your robot, if you use caterpillar tracks you will generally have more load than with wheels. An (...) (21 years ago, 15-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Varying the output voltage?
|
|
(...) you're right, I forgot float. Thanks for clearing the rest up for me :-) Doesn't the motor itself have a "load" when it works with no actual load? "which reduces power but not speed" Timothy (21 years ago, 15-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: OS X Complier problems solved--now struggling with BrickOS
|
|
(...) Hi, First, in terms of my compiler build (referencing your previous post...) what I had a problem with was building the sample C++ code that came with BrickOS. I don't need C++ so I haven't investigated this any further. You're free to try my (...) (21 years ago, 14-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Varying the output voltage?
|
|
This is what I noticed, comparing the two systems with BrickOS One thing that I noticed was at the lower voltages the needle on my multimeter wavered around a little and it tended to steady at the higher power levels All of the readings were taken (...) (21 years ago, 14-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | OS X Complier problems solved--now struggling with BrickOS
|
|
Ok, you can (perhaps--I haven't been able to test it yet) ignore my previous post. I was trying to build the cross compiler using GCC 3.3, and nothing I tried would work. When I switched to 3.2.3, the errors disappeared. So I'm making the temporary (...) (21 years ago, 14-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Cross Compiler for the Mac Os X
|
|
Has anyone had any luck creating a cross complier for the Mac? I've downloaded Michael Zapp's, but he said it wasn't working for C++. I've been trying to compile my own, but I keep getting errors. Any suggestions or pointers would be greatly (...) (21 years ago, 14-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Varying the output voltage?
|
|
(...) Actually there are four, sort of, as for 0 there are float (contacts separated, infinite resistance) and brake (contacts shorted, zero resistance). The standard firmware switches rapidly between on and float (each cycle takes 8ms), which (...) (21 years ago, 14-Jun-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Varying the output voltage?
|
|
(...) The eight different power level pulsing is called "PWM", translation=Pulse width modulation. PWM is the way a digital chip cheats/mimics true analog without a D/A convertor. Since the only output of a digital chip is on or off, there is no (...) (21 years ago, 14-Jun-03, to lugnet.robotics.rcx.legos)
|