compiler error i dont understand

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.
Post Reply
Mr_Spam

compiler error i dont understand

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

Re:compiler error i dont understand

Post by Mr_Spam »

found my error :) disregard this thread
Post Reply