Subject:
|
Re: Unable to compile helloworld.c
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 4 Nov 2001 22:44:05 GMT
|
Viewed:
|
1550 times
|
| |
| |
> In the documentation it says that I should create a
> subdirectory with either the name of "code" or "projects" or something like
> that.
Ok. Now lets look at your "projects" dir. You take helloworld.c from demo and
put it into "projects". Then you also put the Makefile you find in the demo
dir into "projects", so you have two files: helloworld.c and Makefile.
You now must edit Makefile. You find a line:
boot=../boot/legOS
You must change this line to your needs. Lets say, you put your "projects"
directory into the demos directory. Now, legOS in ../../boot/legOS. (The ".."
means: get one dir upwards).
then, you edit the line:
PROGRAMS=helloworld.lx rover.lx linetrack.lx robots.lx c++.lx
to:
PROGRAMS=helloworld.lx
and edit the line:
all: $(PROGRAMS) c++
to
all: $(PROGRAMS)
Then, you have to adjust the path to Makefile.common and Makefile.user the
same way as the path to the legOS file some lines above.
That's it, now helloworld.c should go to helloworld.lx.
Bye
Mike
|
|
Message has 1 Reply: | | Re: Unable to compile helloworld.c
|
| Michael explained very detail, you can do as below if you don't want to do too complex: Make your Project directory inside ../legOS directory, copy Makefile from demo to Project directory, change PROGRAMS=helloworld.lx rover.lx linetrack.lx (...) (23 years ago, 5-Nov-01, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: Unable to compile helloworld.c
|
| Ok let me explain the whole process that I did.I downloaded the .rpm files for legOS,binutils and egcs and installed them.After that according to the HowTo documentation I wanted to test the compiler by compiling a simple program.I looked into the (...) (23 years ago, 4-Nov-01, to lugnet.robotics.rcx.legos)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|