|
I get this when ever I try to compile a program.
Scott Davis@Scott ~
$ cd /brickos/programs
Scott Davis@Scott /brickos/programs
$ dir
Makefile motor.c
Scott Davis@Scott /brickos/programs
$ make motor.lx
Makefile:51: .depend: No such file or directory
/h8300-000821/H-i686-cygwin32/bin/h8300-hms-gcc -M -I/brickos/include -I/brickos
/include/lnp -I. -I/brickos/boot *.c > .depend
/h8300-000821/H-i686-cygwin32/bin/h8300-hms-gcc -O2 -fno-builtin -fomit-frame-po
inter -Wall -I/brickos/include -I/brickos/include/lnp -I. -I/brickos/boot -c mo
tor.c -o motor.o
/h8300-000821/H-i686-cygwin32/bin/h8300-hms-ld -T ../boot/brickOS.lds -relax -L/
brickos/lib motor.o -lc -lmint -lfloat -lc++ -o motor.dc1 --oformat coff-h8300
-Ttext 0xb000
/h8300-000821/H-i686-cygwin32/bin/h8300-hms-ld.exe: cannot find -lc
make: *** [motor.dc1] Error 1
I'm fairly sure that its not the program that is causing the error.
Here is the program:
#include <dmotor.h>
#include <unistd.h>
int main(int argc, char **argv)
{
motor_a_dir(fwd);
motor_a_speed(MAX_SPEED);
motor_c_dir(fwd);
motor_c_speed(MAX_SPEED);
sleep(4);
motor_a_dir(off);
motor_c_dir(off);
return 0;
}
If anyone could help me solve this I would greatly appreciate it.
Thanx
Scott
p.s.
I'm running windows xp pro and installed the prebuilt Hitachi package.
|
|
Message has 1 Reply: | | Re: brickos-0.2.6.10 error
|
| Scott, You need to put a .depend file and Makefile inside the directory you are compiling the programs in. Just create a file with the extenstion .depend and put it into your programs directory. There dosn't need to be anything in the file. When you (...) (21 years ago, 3-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
|
|
|
|