hallo,
ich habe ein betriebssystem geschrieben das von grub gebootet wird und dann die funktion setup() aufruft. die setup() wiederum macht alles weitere (ruft den scheduler etc auf) das compilen geht ohne probleme aber das linken funktioniert nicht....
cpp -nostdinc -I../include multiboot.S | as -o multiboot.o
gcc -nostdinc -I../include -Werror -Wimplicit-function-declaration -O2 -fomit-frame-pointer -march=i386 -c setup.c
gcc -nostdinc -I../include -Werror -Wimplicit-function-declaration -O2 -fomit-frame-pointer -march=i386 -c scheduler.cpp
gcc -nostdinc -I../include -Werror -Wimplicit-function-declaration -O2 -fomit-frame-pointer -march=i386 -c task.cpp
gcc -nostdinc -I../include -Werror -Wimplicit-function-declaration -O2 -fomit-frame-pointer -march=i386 -c pic.cpp
gcc -nostdinc -I../include -Werror -Wimplicit-function-declaration -O2 -fomit-frame-pointer -march=i386 -c io.cpp
gcc -nostdinc -I../include -Werror -Wimplicit-function-declaration -O2 -fomit-frame-pointer -march=i386 -c mt.cpp
gcc -nostdinc -I../include -Werror -Wimplicit-function-declaration -O2 -fomit-frame-pointer -march=i386 -c bug.cpp
ld multiboot.o setup.o scheduler.o task.o pic.o io.o mt.o bug.o -e _start -nostdlib --oformat elf32-i386 -Ttext 0x100000 -o ../liteos.elf
setup.o: In function `setup':
setup.o(.text+0x28d): undefined reference to `enable_interrupt'
setup.o(.text+0x292): undefined reference to `inialize_pic'
setup.o(.text+0x2a4): undefined reference to `enable_icq'
setup.o(.text+0x2c6): undefined reference to `panic'
make[1]: *** [liteos.elf] Error 1
make[1]: Leaving directory `/home/liteos/liteos/kernel'
gruß kevin
http://www.lite-os.de/liteos.zip//edit
Ich bin mir sicher das das problem an der setup.c liegt ich weiß nur nicht wo