问题描述
- 自己动手写操作系统源代码编译,链接错误,求解。
-
自己动手写操作系统源码(D:Tinixchapter5h),编译结果如下:
$ MAKE
ld -s -Ttext 0x30400 -o kernel.bin kernel/start.o lib/string.o lib/klib.o kernel/kernel.o
kernel/start.o:start.c:(.text+0xe): undefined reference todisp_str'
memcpy'
kernel/start.o:start.c:(.text+0x37): undefined reference to
kernel/start.o:start.c:(.text+0x63): undefined reference todisp_str'
start':
kernel/kernel.o: In function
kernel/kernel.asm:(.text+0x8): undefined reference togdt_ptr'
cstart'
kernel/kernel.asm:(.text+0xd): undefined reference to
kernel/kernel.asm:(.text+0x14): undefined reference to `gdt_ptr'
Makefile:82: recipe for target 'kernel.bin' failed
MAKE: *** [kernel.bin] Error 1
环境:windows8 + cygwin
时间: 2024-09-05 21:10:34