Beginner Help - Print to screen
Posted: Tue Nov 14, 2006 3:05 pm
I have just started to write my own os tonight and I having trouble...
Im using GRUB to boot with. I borrowed basic code to get text onto the screen.
I am using the code off osdever.net called bkerndev.zip.
when I try to compile with gcc with these command line arguments:
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c -o main.o main.c
gcc returns the error:
invalid operands to binary |
the code it is having problems with is
*where = txt | att;
att is the colour.
This works fine in the example I am using.
I have included the main.c file as an attachment.
Thanks in advance.
Im using GRUB to boot with. I borrowed basic code to get text onto the screen.
I am using the code off osdever.net called bkerndev.zip.
when I try to compile with gcc with these command line arguments:
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c -o main.o main.c
gcc returns the error:
invalid operands to binary |
the code it is having problems with is
*where = txt | att;
att is the colour.
This works fine in the example I am using.
I have included the main.c file as an attachment.
Thanks in advance.