BCC LD86 file has bad magic number

158 views Asked by At

I wanted to write a simple hello world program in DOSBox, so I downloaded Bruce's C Compiler from here. And wrote this program:

#include <stdio.h>
int main() {
  printf("Hello, World!\n");
}

I ran bcc like this: bcc -o hello hello.c, but I get this error every time:

C:\BCC\DEVEL\BCC\BIN\LD86.EXE: HELLO.C has bad magic number

I don't know why this is happening, if anyone can tell me please do.

0

There are 0 answers