[Prev][Next][Index][Thread]
Problem with linking.
This is proably some stupid mistake on my part, but when I try to compile
my project using the attached make file, I get the following errors.
i586-oskit-gcc -O3 -Wall -c shiva.c
i586-oskit-gcc -O3 -Wall -c raw.c
i586-oskit-gcc -O3 -Wall -c disk.c
i586-oskit-gcc -O3 -Wall -loskit_linux_dev -loskit_dev -o shiva shiva.o
raw.o disk.o
disk.o: In function `disk':
disk.o(.text+0x11): undefined reference to `oskit_dev_init'
disk.o(.text+0x16): undefined reference to `oskit_linux_init_ide'
disk.o(.text+0x25): undefined reference to `oskit_dev_probe'
disk.o(.text+0x3f): undefined reference to `oskit_linux_block_open'
make: *** [all] Error 1
Any help would be appreciated.
-Levi
# Shiva ver. 0.03 Makefile
# Copyright 1998 Rewt Inc.
# May be used under the GNU GPL.
CC = i586-oskit-gcc -O3 -Wall
all: shiva.o raw.o disk.o
$(CC) -loskit_linux_dev -loskit_dev -o shiva shiva.o raw.o disk.o
shiva.o: shiva.c shiva.h
$(CC) -c shiva.c
raw.o: raw.c shiva.h
$(CC) -c raw.c
disk.o: disk.c shiva.h
$(CC) -c disk.c
clean:
rm *.o shiva
Follow-Ups: