Error when compiling GazOS

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
Guest

Error when compiling GazOS

Post by Guest »

When I try to compile the GazOS it gives me this error at the end of linking:

kernel.o(.text+0x11):kernel.c: undefined reference to 'loadgdt'

This is the part of code that it's talking about in kernel.c:

struct
{
unsigned short limit __attribute__ ((packed));
union DT_entry *idt __attribute__ ((packed));
} loadgdt = { (3 * sizeof(union DT_entry) - 1), GDT };

Can someone help me get it to compile?
Post Reply