Source code and method of compilation posted here: https://github.com/mrjbom/OS
When trying to compile kmain.c, the compiler says that there is an implicit declaration.
Code: Select all
./source/kmain.c: In function ‘kmain’:
./source/kmain.c:7:5: warning: implicit declaration of function ‘initVGAMemory’ [-Wimplicit-function-declaration]
initVGAMemory();
^
./source/kmain.c:8:5: warning: implicit declaration of function ‘clearVGAMemory’ [-Wimplicit-function-declaration]
clearVGAMemory(0xFE01AC);
^
./source/kmain.c:9:5: warning: implicit declaration of function ‘writePixelToVGA’ [-Wimplicit-function-declaration]
writePixelToVGA(VGA_HEIGHT - 1, VGA_WIDTH - 1, 0x00FFFFFF);
Code: Select all
#include "vgamemory.h"
Code: Select all
vgamem.o:(.bss+0x0): multiple definition of `VGAFRAMEBUFFER_ADDRESS'
kmain.o:(.bss+0x0): first defined here
How can I solve this problem?
I hope I could explain everything. I apologize if something is unclear to you.