GDT

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

Moderator: Moderators

GDT

Postby 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?
jackson
 
Posts: 14
Joined: Sat Aug 06, 2011 7:52 pm

Re: GDT

Postby 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
Andyhhp
Moderator
 
Posts: 387
Joined: Tue Oct 23, 2007 10:05 am
Location: 127.0.0.1

Re: GDT

Postby 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.
jackson
 
Posts: 14
Joined: Sat Aug 06, 2011 7:52 pm

Re: GDT

Postby 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
Andyhhp
Moderator
 
Posts: 387
Joined: Tue Oct 23, 2007 10:05 am
Location: 127.0.0.1

Re: GDT

Postby 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.
jackson
 
Posts: 14
Joined: Sat Aug 06, 2011 7:52 pm


Return to Beginning OS Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron