GDT

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
jackson
Posts:14
Joined:Sat Aug 06, 2011 7:52 pm
GDT

Post by jackson » Sun Aug 21, 2011 9:54 pm

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?

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Re: GDT

Post by Andyhhp » Mon Aug 22, 2011 7:12 pm

You have the include paths wrong then.

Double check them - You definitly can include files.

~Andrew
Image

jackson
Posts:14
Joined:Sat Aug 06, 2011 7:52 pm

Re: GDT

Post by jackson » Tue Aug 23, 2011 12:51 am

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.

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Re: GDT

Post by Andyhhp » Tue Aug 23, 2011 6:04 pm

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
Image

jackson
Posts:14
Joined:Sat Aug 06, 2011 7:52 pm

Re: GDT

Post by jackson » Wed Aug 24, 2011 1:23 am

Thanks,

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

Post Reply