FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OS - Kernel link problem

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
wishmaster



Joined: 23 Sep 2004
Posts: 4

PostPosted: Sat Sep 25, 2004 6:27 pm    Post subject: OS - Kernel link problem Reply with quote

Hi, i want to rewrite my OS in D. I compile the kernel with dmd -c kernel.d.
But how to link ? With ld .... kernel.obj i get an error "kernel.obj: file not recognized: File format not recognized
I have already looked at dkernel, but dkernel uses ld too. I think it does work, because dkernel is compiled with the linux version and i use windows.

bye.
Back to top
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 657
Location: Muskogee, OK, USA

PostPosted: Sat Sep 25, 2004 7:36 pm    Post subject: Re: OS - Kernel link problem Reply with quote

wishmaster wrote:
Hi, i want to rewrite my OS in D. I compile the kernel with dmd -c kernel.d.
But how to link ? With ld .... kernel.obj i get an error "kernel.obj: file not recognized: File format not recognized
I have already looked at dkernel, but dkernel uses ld too. I think it does work, because dkernel is compiled with the linux version and i use windows.
In case you haven't read it yet, I'll mention that you might find something useful in this thread: D Newbies.

I've never tried to create a kernel, so I'm not sure what all is required. I'd be very surprised, though, if the windows version of DMD automatically produced an executable that worked on a computer that didn't have Windows installed. I'd think you'd need to be using the Linux version of DMD (or possibly using GDC under cygwin).

Good luck.


Update

Since people keep posting about this in the D newsgroup, I created a wiki page about kernel efforts:
http://www.prowiki.org/wiki4d/wiki.cgi?KernelWithD
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group