Page 1 of 1

GCC compiling error?

Posted: Mon Jan 09, 2012 11:20 am
by Marcus
When I try to use the GCC command to compile the kernel.c from the Bare Bones page on the wiki, this happens:

Code: Select all

$ i586-elf-gcc -o kernel.o -c kernel.c -Wall -Wextra -Werror \
> -nostdlib -fno-builtin -nostartfiles -nodefaultlibs
cc1: warnings being treated as errors
kernel.c:1: warning: unused parameter 'mbd'
I thought about removing the parameter 'mbd', but I don't know how that would affect the kernel.
Any ideas?

Re: GCC compiling error?

Posted: Mon Jan 09, 2012 12:53 pm
by Love4Boobies
I have an idea but you're not going to like it: Give up your project.

Re: GCC compiling error?

Posted: Mon Jan 09, 2012 1:54 pm
by AJ
Hi,
Love4Boobies wrote:Give up your project.
Alternatively, do more application programming first and then come back to OS Development. The question shows a lack of understanding of compiler messages, of the language and of the toolchain. If this error is fixed on the forums, your project will just be one question after another.

Cheers,
Adam