Bootable Program

This is a discussion on Bootable Program within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hi everyone! I'm XmoKe, from Brazil, & I've been searchin' the Net for some way to turn a simple C ...

  1. #1
    xhk
    xhk is offline
    Registered User
    Join Date
    Mar 2002
    Posts
    1

    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?

    Code:
    /* 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!

    XmoKe.

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

    Code:
    #include <stdio.h>
    
    int main(void)
    {
     printf("Boot!\n");
     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, 12: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, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21