Page 1 of 1

GDT

Posted: Sun Aug 21, 2011 9:54 pm
by jackson
Hello I've finished the first stage bootloader and working in the second stage but the second stage compile because it can't include the files and if I put all the code in one file it messes up the gdt. Do the inc files have to be compiled? Why can't I include the files?

Re: GDT

Posted: Mon Aug 22, 2011 7:12 pm
by Andyhhp
You have the include paths wrong then.

Double check them - You definitly can include files.

~Andrew

Re: GDT

Posted: Tue Aug 23, 2011 12:51 am
by jackson
I've double checked them and it still won't include I've tried

%ifndef __GDT_INC_67343546FDCC56AAB872_INCLUDED__

%define __GDT_INC_67343546FDCC56AAB872_INCLUDED__

;code

%endif

and

%ifndef __GDT_MAC
%define __GDT_MAC

;code

%endif

also the file name was GDT.inc and I also tried GDT.mac

and when I include them it looks like this:

%include "GDT.inc"

and

%include "GDT.mac"


I've never had this problem. So... I've tried everything I could look up or try but, it still won't work.

Re: GDT

Posted: Tue Aug 23, 2011 6:04 pm
by Andyhhp
There is no relation between the text in the %include and the %define inside the file. Why would there be?

the %include just has to be the filename of the code you want to include


~Andrew

Re: GDT

Posted: Wed Aug 24, 2011 1:23 am
by jackson
Thanks,

The problem was that when I compiled them I copied the build file from the INC file on my shell script.