Closed arteze closed 3 years ago
The same happens in all projects, for example in Pong-Game.
/OS-master/Pong-Game# ./run.sh
vga.o:(.bss+0x0): multiple definition of `vga_buffer'
kernel.o:(.bss+0x0): first defined here
bitmap.o:(.bss+0x0): multiple definition of `vga_buffer'
kernel.o:(.bss+0x0): first defined here
pong.o:(.bss+0x4): multiple definition of `vga_buffer'
kernel.o:(.bss+0x0): first defined here
try running the linker script with the params --allow-multiple-definition
. I think he is declaring variables in the header files.
Thanks, it works for me.
I had seen that they use the parameter in the GCC with -Wl,--allow-multiple-definition
, I never imagined that it would go in the linker (ld), it is good to know.
Yeah, I hope he can update the header file.
Yes, I was able to compile it, as you can see in the image, it is running, and the issue can be closed but when I try to close it with Close with comment
, it remains open.
I think @pritamzope should do that now.
issue fixed, please check
At execute:
Result:
Versions: