|
I get a compile error too, but a different one.
I have written a simple program called light.c which I have put in the demo
directory. I then cd into the demo directory and type "make light.lx", but
then I get loads of errors as follows:
BASH.EXE-2.02$ make light.lx
h8300-hms-gcc -O2 -fno-builtin -fomit-frame-pointer -Wall -I/legos/include -
I/le
gos/include/lnp -I. -I../boot/ -c light.c -o light.o
light.c:2: unistd.h: No such file or directory
light.c:3: conio.h: No such file or directory
light.c:4: dsensor.h: No such file or directory
make: *** [light.o] Error 1
It can't seem to find the *.h files. Which file do I edit to point the
compiler to the right place?
Thanks,
Ralph
P.S.
Using Cygwin B-20
"Dan Gray" <dangray@computer.org> wrote in message
news:H147B0.325@lugnet.com...
> I'm trying to compile the demo code provided with legOS-0.2.6.
> When I type "make helloworld.lx" or "make all", I get the following error:
>
> Any ideas how to fix this? I'm using Linux kernel 2.4.19.
>
> -Dan
>
>
> /usr/bin/h8300-hitachi-hms-ld -T ../boot/legOS.lds -relax
> -L/usr/lib/legOS/lib helloworld.o -lc -lmint -lfloat -o helloworld.ds1
> -Ttext 0xb000
> /usr/bin/h8300-hitachi-hms-ld -T ../boot/legOS.lds -relax
> -L/usr/lib/legOS/lib helloworld.o -lc -lmint -lfloat -o helloworld.ds2
> -Ttext 0xb210
> /usr/lib/legOS/util/makelx helloworld.ds1 helloworld.ds2 helloworld.lx
> usage: /usr/lib/legOS/util/makelx file.ds1 file.ds2 file.lx
> [-sstacksize -v]
> size in hex, please.
> make: *** [helloworld.lx] Error 1
> rm helloworld.ds1 helloworld.ds2
|
|
Message has 1 Reply: | | Re: compile error
|
| There was a problem in our makefiles (fixed post 0.2.6.05) that affected building images from a subdirectory of the LegOS root. I think the problem comes about when using Cygwin and you put the LegOS source root in a directory parallel to the Cygwin (...) (22 years ago, 21-Aug-02, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | compile error
|
| I'm trying to compile the demo code provided with legOS-0.2.6. When I type "make helloworld.lx" or "make all", I get the following error: Any ideas how to fix this? I'm using Linux kernel 2.4.19. -Dan /usr/bin/h8300-hitachi-hms-ld -T (...) (22 years ago, 19-Aug-02, to lugnet.robotics.rcx.legos)
|
5 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
|
|
|
|