Compilation tools advice
Posted: Sat Aug 04, 2007 12:48 pm
I've been kicking around the idea of writing an operating system for a long time now, but only recently have I found real reason to pursue it. I've been coding for ten years, mostly in Cpp with liberal inline assembly, but it has all been in Visual Studio, so I am completely lost in the world of GNU.
I've been trying Brandon F's tutorials on Bona, using the (ancient?) DJGPP version available on the site, and after configuring everything seemingly correctly, even going so far as to hard coding C_INCLUDE_PATH in djgpp.env, and continue to get the following error when trying to compile the C source files [the full ones from the Zip, via the build batch script]:
c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver:1:25: sys/version.h: No such file or di
rectory (ENOENT)
Well, it clearly does exist, at least when I've hard coded the path. I've searched around, finding only unanswered Google group messages.
But on top of this, isn't gcc 3.1 almost 6 years old? And it's not gpp, and I would much prefer to write in Cpp, but I'll take whatever I can get at this point. I've got Gygwin installed, and get another wave of compiler errors and linker errors (particularly invalid file format) when I try to compile virtually any example I find on them.
Really, I'm just terribly depressed at GNU development after having a single, always working 'compile and run' button for a decade. Can anybody point me to a working out of the box bare bones / tutorial / hobby kernel / tutorial that I can compile on Windows using tools that aren't from 2002? Do I honestly have to do all my OS dev inside a linux vm? And I remember trying gpp a while back and it telling me it couldn't do nostdinc anymore.
I'm just lost I guess. I'm so eager to get coding. Please, somebody help
I've been trying Brandon F's tutorials on Bona, using the (ancient?) DJGPP version available on the site, and after configuring everything seemingly correctly, even going so far as to hard coding C_INCLUDE_PATH in djgpp.env, and continue to get the following error when trying to compile the C source files [the full ones from the Zip, via the build batch script]:
c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver:1:25: sys/version.h: No such file or di
rectory (ENOENT)
Well, it clearly does exist, at least when I've hard coded the path. I've searched around, finding only unanswered Google group messages.
But on top of this, isn't gcc 3.1 almost 6 years old? And it's not gpp, and I would much prefer to write in Cpp, but I'll take whatever I can get at this point. I've got Gygwin installed, and get another wave of compiler errors and linker errors (particularly invalid file format) when I try to compile virtually any example I find on them.
Really, I'm just terribly depressed at GNU development after having a single, always working 'compile and run' button for a decade. Can anybody point me to a working out of the box bare bones / tutorial / hobby kernel / tutorial that I can compile on Windows using tools that aren't from 2002? Do I honestly have to do all my OS dev inside a linux vm? And I remember trying gpp a while back and it telling me it couldn't do nostdinc anymore.
I'm just lost I guess. I'm so eager to get coding. Please, somebody help