Page 1 of 1

compiler error i dont understand

Posted: Sun Nov 10, 2002 5:22 pm
by Mr_Spam
I went to compile my first kernal (YAY!!) and was able to fix all the problems exept an error saying "declared as function returning a function"
this error occurs in the like sti, hlt, cli functions in the x86.h header file. heres what i have in those functions:
/*prototype*/
void sti();

/*function*/

void sti()
{
asm("sti");
}

for the others th eonly difference is the same of the function and the one word command that is inline assembly.

I dont understand the error or how to fix it...

thanks,

Spam

Re:compiler error i dont understand

Posted: Sun Nov 10, 2002 5:46 pm
by Mr_Spam
found my error :) disregard this thread