Mail Archives: djgpp/1998/04/10/14:01:28
Read the readme.1st file from the djgpp distribution, you need to make sure that
you add the lines to your autoexec.bat files. Make sure this is added (assuming
c:\djgpp is your default directory) at the end of your autoexec.bat
SET PATH=C:\DJGPP\BIN;%PATH%
SET DJGPP=C:\DJGPP\DJGPP.ENV
Hopefully that solves your problems.. if not, reply with more specific error
messages, and try compiling that program from the command line instead of with
RHIDE:
gcc -o test.exe test.c
If that works, it's a problem with RHIDE, not DJGPP itself.
Thanks,
Brian
bhogg AT worldchat DOT com
http://team.home.ml.org
cybermik AT netactive DOT co DOT za wrote:
> 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 -