GCC compiling error?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
Marcus
Posts: 4
Joined: Wed Dec 21, 2011 10:23 am

GCC compiling error?

Post 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?
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: GCC compiling error?

Post by Love4Boobies »

I have an idea but you're not going to like it: Give up your project.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: GCC compiling error?

Post 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
Locked