Mail Archives: djgpp/1997/05/15/20:02:08
I wouldn't worry. If you used certain libraries, they also got compiled in
with your program, and they might take up some space if the file is big.
Try using some new libraries and see what that does.
Dan
L. Brown <lbrown AT frontiercomm DOT net> wrote in article
<337b72a6 DOT 111607 AT news DOT frontiercomm DOT net>...
> I have been programming for a whopping 5 days now and I have a
> problem. I wrote this sample to test the DJGPP compiler. I used a
> DOS box inside of OS/2 and issued the following command:
>
> gcc name.c -o name.exe -lm
>
> This command compiled the program and it ran fine, but the file was
> 90176 bytes long. I tried to compile several other test programs of
> different lengths and they always come out to be 90176 bytes long.
>
> Could someone please help me or direct me to the appropriate FAQ?
>
>
> /**************************************************
> NAME.C Test program
> **************************************************/
> #include <stdio.h>
>
>
> main()
> {
> char name[80];
> printf("What is your name? ");
> scanf("%s", &name);
>
> printf("Hello, %s, how are you?\n", name);
>
> return 0;
> }
>
>
>
>
- Raw text -