From: "deckerben" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: VERY IMPORTANT QUESTION PLEASE ANSWER(from one of your users of djgpp) Date: Sun, 2 Jun 2002 13:39:48 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 45 Message-ID: <3cfa00b6$0$15182$9b622d9e@news.freenet.de> NNTP-Posting-Host: 213.7.8.171 X-Trace: 1023017143 news.freenet.de 15182 213.7.8.171 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com wrote in message news:b2 DOT c546ce3 DOT 2a2aa6b3 AT aol DOT com... > Hi I am sorry to take up your time but I am in the process of learning c++ > and I am using your gnuc compiler.(might have got name wrong) And everytime > Try to compile a program it tells me that the "DJGPP variable is not > delclared" or something of that nature. I read the FAQ and found my problem > which was that the Autoexce.bat files needed to invoke the Call statement. I > was wondering how I could add the call statement or in other words do what it > told me too because I honestly didn't understand. Will you please answer my > question and thank you for your time. > > -Sincerly > James Ross Gargan Writing FAQs are not as easy as it first sounds. Where do you have DJGPP installed on your harddrive? If you know which drive it's on, go to that drive, and from the drive's root location (i.e. C:\ ... not C:\temp or some other subfolder) and enter the following command: dir djgpp.env /s/p/b It should return a path to your DJGPP ini file. The %DJGPP% variable *must* point to this file (use full path). This file is located at the top of the DJGPP tree (where ever you have it) and cannot be moved somewhere else. Mine looks like this: > echo %DJGPP% D:\USER\DJGPP\DJGPP.ENV If you do not have the djgpp.env file, you need to go back to http://www.delorie.com/djgpp/zip-picker.html .