Closed fgsoftware1 closed 3 years ago
FAILED: bin/kernel.bin gcc -m32 -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -o bin/kernel.bin -c src/kernel.cpp src/kernel.cpp:1:27: warning: extra tokens at end of #include directive 1 | #include "include/types.h"; | ^ src/kernel.cpp:2:25: warning: extra tokens at end of #include directive 2 | #include "include/gdt.h"; | ^ In file included from src/kernel.cpp:2: src/include/gdt.h:4:19: warning: extra tokens at end of #include directive 4 | #include "types.h"; | ^ In file included from src/kernel.cpp:2: src/include/gdt.h:35:36: error: ‘uint16_t GlobalDescriptorTable::codeSegmentSelector()’ conflicts with a previous declaration 35 | uint16_t codeSegmentSelector(); | ^ src/include/gdt.h:28:25: note: previous declaration ‘GlobalDescriptorTable::SegmentDescriptor GlobalDescriptorTable::codeSegmentSelector’ 28 | SegmentDescriptor codeSegmentSelector; | ^~~~~~~ src/include/gdt.h:36:36: error: ‘uint16_t GlobalDescriptorTable::dataSegmentSelector()’ conflicts with a previous declaration 36 | uint16_t dataSegmentSelector(); | ^ src/include/gdt.h:29:25: note: previous declaration ‘GlobalDescriptorTable::SegmentDescriptor GlobalDescriptorTable::dataSegmentSelector’ 29 | SegmentDescriptor dataSegmentSelector; | ^~~~~~~ src/kernel.cpp: In function ‘void fgosMain(const void, uint32_t)’: src/kernel.cpp:12:10: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 12 | printf("Hello World"); | ^~~~~ ninja: build stopped: subcommand failed.
FAILED: bin/kernel.bin gcc -m32 -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -o bin/kernel.bin -c src/kernel.cpp src/kernel.cpp:1:27: warning: extra tokens at end of #include directive 1 | #include "include/types.h"; | ^ src/kernel.cpp:2:25: warning: extra tokens at end of #include directive 2 | #include "include/gdt.h"; | ^ In file included from src/kernel.cpp:2: src/include/gdt.h:4:19: warning: extra tokens at end of #include directive 4 | #include "types.h"; | ^ In file included from src/kernel.cpp:2: src/include/gdt.h:35:36: error: ‘uint16_t GlobalDescriptorTable::codeSegmentSelector()’ conflicts with a previous declaration 35 | uint16_t codeSegmentSelector(); | ^ src/include/gdt.h:28:25: note: previous declaration ‘GlobalDescriptorTable::SegmentDescriptor GlobalDescriptorTable::codeSegmentSelector’ 28 | SegmentDescriptor codeSegmentSelector; | ^
~~~~~~ src/include/gdt.h:36:36: error: ‘uint16_t GlobalDescriptorTable::dataSegmentSelector()’ conflicts with a previous declaration 36 | uint16_t dataSegmentSelector(); | ^ src/include/gdt.h:29:25: note: previous declaration ‘GlobalDescriptorTable::SegmentDescriptor GlobalDescriptorTable::dataSegmentSelector’ 29 | SegmentDescriptor dataSegmentSelector; | ^~~~~~~ src/kernel.cpp: In function ‘void fgosMain(const void, uint32_t)’: src/kernel.cpp:12:10: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 12 | printf("Hello World"); | ^~~~~ ninja: build stopped: subcommand failed.