From: "Roland Moritz" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP-Newbie needs help Date: Tue, 10 Aug 1999 15:23:36 +0200 Organization: UTANET Newsserver Lines: 115 Message-ID: <7op80l$1s1$1@rohrpostix.uta4you.at> References: <7ok6vc$iqk$1 AT rohrpostix DOT uta4you DOT at> <7onh9j$3ne$5 AT ctb-nnrp1 DOT saix DOT net> NNTP-Posting-Host: mibeu01-0096.utaonline.at X-Trace: rohrpostix.uta4you.at 934290261 1921 212.152.128.96 (10 Aug 1999 13:04:21 GMT) X-Complaints-To: news-admin AT utanet DOT at NNTP-Posting-Date: 10 Aug 1999 13:04:21 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Stefan Viljoen schrieb in Nachricht <7onh9j$3ne$5 AT ctb-nnrp1 DOT saix DOT net>... >Roland Moritz wrote in message >news:7ok6vc$iqk$1 AT rohrpostix DOT uta4you DOT at... >> When I try to compile my "hello world"-program, the following error >occurs: >> "Installation problem, cannot exec 'stubify': no such file or directory >> (ENOENT)" > >This means one of two things (I think!): > >1. DJGPP was not installed correctly > >DUMP! I hear you shout. But hear me out. Did you do the following: > >- Use the ZipPicker at http://www.delorie.com/djgpp/ > >This is a facility that ensures that you download all the files you need, >and that you do no miss certain ones which can cause the irritating problem >you describe here. "stubify" is a program that is located in djgpp\bin that >is needed to enable you to compile DJGPP programs. > >- If you did use the ZipPicker, did you get the binutils? > >As far as I know, stubify.exe is in the binutils package - did you get this >from the ZipPicker? > >- If you did get the binutils, did you extract them, and the other arhcives >with the pkunzip -d switch? > >If you did not do this, all the files would have been dumped into the same >directory and nothing would work (I think!). You need to extract the .ZIPs >with the -d switch so that the directories stay preserved and everything can >go where it must go. > >2 - You did not set up the DJGPP environment variable > >The "DJGPP environment variable" must point tot he file djgpp\djgpp.env. To >set it do > >set DJGPP=C:\djgpp\djgpp.env > >or wherever your djgpp.env file is. I personally use a DOS mode batch file >to set up a DJGPP DOS box in my W95 system where I do all my coding - >something like > >set DJGPP = C:\PROGRAMS\DJGPP\DJGPP.ENV >set path = C:\WINDOWS;C:\WINDOWS\SYSTEM;C:\DJGPP\BIN;C:\DJGPP >. >. >etc >. >. > >> Also, if i try to compile the demo Allegro-program, the compiler says he >> can't find the "Allegro.h"-File, so I put it in the include-directory >List, >> and then he says, that he can't find the source file "demo.c" anymore. > >Hmm - it probably cannot find the Allegro.h file because you have not >compiled allegro yet! You need to have a fully functional DJGPP installation >before you can attempt to compile allegro, which is what you MUST do before >you attempt to compile an allegro demo file - by defintion an Allegro demo >file will NEVER compile unless you have compiled allegro first (since >allegro is called by that demo program, such as DEMO.C) - a nice little >"chicken & egg" problem. I do not know what you mean by it not finding the >source demo.c anymore - what exactly goes wrong? > >> Please help me, I know that my questions may sound stupid, but I'm quite >new >> to C and DJGPP; I would also appreciate it a lot, if someone could just >> explain to me every step necessary to setup DJGPP right, cause so far, I >> couldn't compile a single program, because there always were some .h-Files >> not found or something else wasn't configured the right way. > >This definitely sounds as if you have not compiled allegro before attempting >to compile programs that reference it or / and that you did not get all the >ZIPs you need to use djgpp (see above) and / or that you possibly did not >extract with the maintain directory structure switch -d when you attempted >to install the compiler. > >http://www.delorie.com/djgpp/ has detailed instructions on how to setup the >compiler. Try it! If you do not succeed, please feel free to post here again >or mail me for further info. We should be able to help you in a step by step >do-this-did-it-work-yes-or-no approach. > >Good luck and fanx for choosing DJGPP!!! > > >-- >This message courtesy of >RylanNet rylan AT intekom DOT co DOT za >http://home.intekom.com/rylan/ >-- >StarWars for ever!. > > Well, actually I didn't download the files, but installed DJGPP from a CD, which was included in C++ Book ("SAMS Teach yourself C++ in 21 Days"); the installation program did everything by itself, so I assumed, that the installation was done right, but obviously I'll have to download and install everything by myself...strange though: The Stubify.exe was on the CD in a zipped file, but wasn't installed by the setup program on my HD, also some of the other files were not installed correctly...maybe the setup-program just has a few bugs and I'll have to install it manually...