Thread: Bootable Program

  1. #1
    Registered User
    Join Date
    Mar 2002

    Bootable Program

    Hi everyone!

    I'm XmoKe, from Brazil, & I've been searchin' the Net for some way to turn a simple C program bootable 4 some time now, but I can't seem to find that info anywhere. I'm studyin' a little asm now 2 (just out of curiosity), and even in these tutorials & books, I couldn't find it. So my question is:
    How do I make, i.e., this program bootable on Win &/or Linux?

    /* bootst.exe or just bootst */
    #include <stdio.h>
    int main() {printf("Boot!\n");}
    Well, sorry if put this question on the wrong place
    (General Discussion), I just didn't know where to put it.
    And thank u very much in advance.
    C ya!


  2. #2
    Registered User
    Join Date
    Jan 2002
    Your program is wrong, it says int main, and then doesn't return an integer.

    #include <stdio.h>
    int main(void)
     return 0;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 01:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  4. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM