PDA

View Full Version : Bootable Program



xhk
03-13-2002, 01:24 AM
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!

XmoKe.

Brian
03-13-2002, 01:27 AM
Your program is wrong, it says int main, and then doesn't return an integer.



#include <stdio.h>

int main(void)
{
printf("Boot!\n");
return 0;
}