Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [morten@MORTEN_PC MTGos]$ make
- nasm -f elf32 -g -o boot.o boot.asm
- gcc -m32 -Wall -g -fno-stack-protector -nostdinc -I./include -c -o bootloader.o bootloader.c
- nasm -f elf32 -g -o init.o init.asm
- gcc -m32 -Wall -g -fno-stack-protector -nostdinc -I./include -c -o main.o main.c
- In file included from main.c:16:0:
- ./include/print.h:81:6: Warnung: In Konflikt stehende Typen für eingebaute Funktion »putchar« [standardmäßig aktiviert]
- void putchar(char ch) {
- ^
- ./include/print.h:100:6: Warnung: In Konflikt stehende Typen für eingebaute Funktion »puts« [standardmäßig aktiviert]
- void puts(const char *s) {
- ^
- ./include/print.h: In Funktion »printf«:
- ./include/print.h:140:4: Warnung: Implizite Deklaration der Funktion »kputs« [-Wimplicit-function-declaration]
- kputs(s);
- ^
- ./include/print.h:160:4: Warnung: Implizite Deklaration der Funktion »putc« [-Wimplicit-function-declaration]
- putc('%'); // "%%" wird nicht ausgegeben als "" sondern als "%"
- ^
- ./include/print.h:170:7: Warnung: Implizite Deklaration der Funktion »kputc« [-Wimplicit-function-declaration]
- kputc(*fmt);
- ^
- main.c: Auf höchster Ebene:
- main.c:24:6: Warnung: Rückgabetyp von »main« ist nicht »int« [-Wmain]
- void main(unsigned short totalMem, unsigned char lowerMem, unsigned char upperMem, unsigned int fails)
- ^
- main.c:24:6: Warnung: erstes Argument von »main« sollte »int« sein [-Wmain]
- main.c:24:6: Warnung: zweites Argument von »main« sollte »char **« sein [-Wmain]
- main.c:24:6: Warnung: drittes Argument von »main« sollte wahrscheinlich »char **« sein [-Wmain]
- main.c:24:6: Warnung: »main« benötigt entweder null oder zwei Argumente [-Wmain]
- main.c: In Funktion »main«:
- main.c:28:3: Warnung: unbekanntes Konvertierungstyp-Zeichen »b« im Format [-Wformat=]
- printf("Zahl -1 in Base 36: %b%B", 36, -1);
- ^
- main.c:28:3: Warnung: unbekanntes Konvertierungstyp-Zeichen »B« im Format [-Wformat=]
- main.c:28:3: Warnung: zu viele Argumente für Format [-Wformat-extra-args]
- ld -melf_i386 -Ttext=0x7C00 -o kernel boot.o bootloader.o init.o main.o
- ld: warning: cannot find entry symbol _start; defaulting to 0000000000007c00
- bootloader.o: In function `init':
- /home/morten/MTGos/bootloader.c:81: undefined reference to `.1'
- main.o: In function `printf':
- /home/morten/MTGos/./include/print.h:140: undefined reference to `kputs'
- /home/morten/MTGos/./include/print.h:160: undefined reference to `putc'
- /home/morten/MTGos/./include/print.h:165: undefined reference to `putc'
- /home/morten/MTGos/./include/print.h:166: undefined reference to `putc'
- /home/morten/MTGos/./include/print.h:170: undefined reference to `kputc'
- Makefile:10: recipe for target 'kernel' failed
- make: *** [kernel] Error 1
- [morten@MORTEN_PC MTGos]$
Advertisement
Add Comment
Please, Sign In to add comment