From: Maurice Lombardi Newsgroups: comp.os.msdos.djgpp Subject: Re: installing gpc under djgpp Date: Wed, 11 Dec 2002 20:06:23 +0100 Organization: Universite Joseph Fourier - Grenoble 1 Lines: 42 Message-ID: <3DF78CAF.9080009@ujf-grenoble.fr> References: <3DEE8C90 DOT DADB8AFC AT yahoo DOT com> <1RPH9.10$iT6 DOT 33092 AT news DOT alltel DOT net> NNTP-Posting-Host: knautie.ujf-grenoble.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: rhone.ujf-grenoble.fr 1039633455 34137 152.77.252.196 (11 Dec 2002 19:04:15 GMT) X-Complaints-To: abuse AT ujf-grenoble DOT fr NNTP-Posting-Date: Wed, 11 Dec 2002 19:04:15 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: fr-fr, it, en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com James Whitmire a écrit: > My REAL problem concerns configuring DJGPP to find the paths to the the > djgpp.ver > file and the libraries. The code in 'hello.pas' was simply a short program > for illustration > purposes. I added the changes anyway and instead compiled with: > > => gpc hello.pas > > and got: 'gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)' > > I then copied djgpp from C:\DJGPP\lib\gcc-lib\djgpp\3.2 to the current > directory and > ran > => gpc hello.pas > > and got: 'c:/djgpp/bin/ld.exe: cannot find -lgcc' > > Has anyone had this problem with compiling under DJGPP? It seems that you have overlooked an essential point with gpc: it needs files of the _same version number_ of gcc contained in the %DJDIR%\lib directory ans subdirectories. If you have a gpc based on gcc-2.95.3 you need those files which are put by gcc2953b in the lib directory and also in the lib/gcc-lib/djgpp/2.953 directory. If you have installed e.g. the latest gcc321b and try to install gpc2953b this won't work. To make it work you can extract files from gcc2953b.zip and put them in proper place. Indeed -lgcc looks for libgcc.a in the directory %DJDIR%/lib/gcc-lib/djgpp/ and the position of djgpp.ver has been moved from %DJDIR%/lib to %DJDIR%/lib/gcc-lib/djgpp/ between gcc-2.95.x and gcc-3.X.Y Maurice -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 63 54 95 mailto:Maurice DOT Lombardi AT ujf-grenoble DOT fr