View previous topic :: View next topic |
Author |
Message |
wishmaster
Joined: 23 Sep 2004 Posts: 4
|
Posted: Sat Sep 25, 2004 6:27 pm Post subject: OS - Kernel link problem |
|
|
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 |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Sat Sep 25, 2004 7:36 pm Post subject: Re: OS - Kernel link problem |
|
|
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 |
|
|
|
|
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
|