GDT
Moderator:Moderators
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
You have the include paths wrong then.
Double check them - You definitly can include files.
~Andrew
Double check them - You definitly can include files.
~Andrew

Re: GDT
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.
%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
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
the %include just has to be the filename of the code you want to include
~Andrew
