From: Brian Hogg Newsgroups: comp.os.msdos.djgpp Subject: Re: Please Help Date: Fri, 10 Apr 1998 13:51:54 -0400 Organization: WorldCHAT(tm) Internet Services Lines: 52 Message-ID: <352E5C3A.BB75D110@worldchat.com> References: <892202654 DOT 754158 AT proxy DOT netactive DOT co DOT za> NNTP-Posting-Host: rlan3-p30.wchat.on.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 > 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!