From: "Klytu" Newsgroups: comp.os.msdos.djgpp Subject: Re: How do I compile source code that is not in DJGPP/bin? Date: Wed, 29 Mar 2000 19:34:04 -0500 Lines: 66 Message-ID: <8bu7dv$qgf$1@bob.news.rcn.net> References: <8bt81j$h78$1 AT bob DOT news DOT rcn DOT net> <38E22A2E DOT 5C3084C AT corel DOT com> X-Trace: qMmFOuMSNqOqxhM1ylf5kvmY1t8joM0uf//VrqzJNutnMUkIfIETTA== X-Complaints-To: abuse AT rcn DOT com NNTP-Posting-Date: 30 Mar 2000 00:34:07 GMT X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 To: djgpp AT Delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Actually I DID read the readme.1st (I actually keep a hard copy of it near my computer so I can navigate in 'info ' more easily). It turns out that this is more of a question about RHIDE than about DJGPP per se. I discovered today that all I had to do was to go to an MSDOS prompt, change directory to the directory where my source files are, and call RHIDE within that directory. Then I can use RHIDE to compile right from that directory. I still haven't figured out how to get RHIDE to look in multiple other directories for header files, but I think I may have been using the wrong syntax to list multiple include paths in RHIDE's (options>directories>include). So basically, your comment was not at all helpful! But I still thank you for responding and at least trying to aid someone lost. I read many of the posts here and I have noticed that many times when a beginner asks a question that is answered somewhere in the documentation, it is not at all obvious to that beginner exactly where the answer can be found. Sometimes (as I think is the case with me here), a novice may not even ask precisely the right question. But all responses are still appreciated as sometimes they can lead to the right place to start. "Jonathan Meunier" wrote in message news:38E22A2E DOT 5C3084C AT corel DOT com... > Did you read the readme.1st? It should be in your DJGPP root dir.. If > not, read it from > http://www.simtel.net/pub/simtelnet/gnu/djgpp/v2/readme.1st (or any > closer mirror). > > Why exactly can't you compile in another directory? If it says "Bad > command or file name" when invoking gcc/gpp, then this simply means you > haven't set the environment variables and the path.. All this is in the > readme.1st, so you should get out of this relatively painlessly. > > HTH, > .(Trancelucid). > . Jaune . > > Klytu wrote: > > > > I am a true beginner to DJGPP and to GNU software. I originally got an old > > version of DJGPP with a CD that came with a book (Teach Yourself C++ in 24 > > Hours); but I have now updated DJGPP and my GNU files to 2952 and Rhide to > > 1475. My problem is that I can only compile code that I write if that code > > along with all the header files that I create for it is located in the > > c:\DJGPP\bin directory. I found what I thought was a solution by indicating > > an include path in Rhide (by using Options>directories>include), but then > > Rhide only finds the header files that I have placed in that specific > > directory; I can't indicate more that one directory (as it seems I need to > > do to compile some of the sample programs in DJGPP). The only info I found > > in the FAQs tells what to do if the problem is related to long filenames (it > > is not) or if gcc is not finding the standard headers for C or C++ (it finds > > those just fine, it just doesn't find the ones I create unless they are in > > c:\DJGPP\bin). Can anyone out there help or point me in the right direction > > or am I just hopelessly lost?