Mail Archives: djgpp/1998/04/10/21:45:29
I am learning C programming from a book.
I donwloaded DJGPP along with RHIDE to compile the programs on.
The first program in the book is very simple.
Here is the source :
1: /*02L01.c : This is my first C program. */
2: #include <stdio.h>
3:
4: main ()
5: {
6: printf ("Howdy, neighbor! This is my first C program. \n");
7: return 0;
8: }
When I compile it using RHIDE, I get error messages. I have tried removing
the #include section.
The program then compiled, but when I run it, it says something like
"ld -lgcc file in wrong format".
Sometimes I also get "Unable to include include file 'stdio.h'.
If somebody can please compile this and try to figure out what I am doing
wrong, it will be greatly appreciated.
The book says that all the programs conform to the ANSI standard, so I don't
think that is the problem...
Thanks a lot!
- Raw text -