Author Topic: Compile as BIN file  (Read 6533 times)

jaeg

  • Guest
Compile as BIN file
« on: June 17, 2007, 02:19:55 am »
I am going to make a simple OS based on this tutorial:http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6718&lngWId=3&txtForceRefresh=61620072018791011
Is it possible to get CodeBlocks to compile the OS?  I don't know how to get CB to compile anything but dlls and exes.

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: Compile as BIN file
« Reply #1 on: June 17, 2007, 09:57:06 am »
Codeblocks is not a compiler, but an ide.
If you compile something, codeblocks simply assembles commandlines and executes them.
So the question is: Is it possible to get your compiler (Mingw, Visual C++, or what you are using) to compile the os?

Edit: Have a look at the build.bat file in the sources. It should give you an idea how to compile the kernel correctly.

Regards
raph
« Last Edit: June 17, 2007, 10:00:30 am by raph »

jaeg

  • Guest
Re: Compile as BIN file
« Reply #2 on: June 17, 2007, 09:48:30 pm »
I knew it wasn't a compiler.  I just didn't know if it was possible to get code::blocks to issue these kind of commands to the compiler.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Compile as BIN file
« Reply #3 on: June 17, 2007, 09:51:41 pm »
Yes, it is. Just specify the additional flags in your project's build options.

jaeg

  • Guest
Re: Compile as BIN file
« Reply #4 on: June 18, 2007, 05:04:03 am »
Ok, thanks.