Mail Archives: djgpp/2002/12/11/14:30:14
On Wed, 04 Dec 2002 15:53:58 GMT, "James Whitmire"
<jwhitmir AT netscape DOT net> wrote:
> I installed gpc on a Win2K PC with DJGPP.
>
> 1) It will compile a Hello.c => [..]
> using "gcc -o hello.exe hello.c";
>
> But not Hello.pp => [..]
> using "gpc -o hello.exe hello.pas"
>
> I get this =>
> "gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)"
>
> 2) Copied djgpp.ver from C:\DJGPP\lib\gcc-lib\djgpp\3.2 to current dir
> and got this =>
> "c:/djgpp/bin/ld.exe: cannot find -lgcc"
>
> Appears to be some sort of path problem in the gpc installation.
> "libgcc.a" is in same dir as "djgpp.ver".
>
> I've read the FAQ's. Have correct path "DJGPP => c:\djgpp\djgpp.env".
> Copied [gcc] contents to [gpc]in djgpp.env. Can you give me a possible
> next step to investigate?
>
> Jim.
>
I encountered the same problem using GPC 2.1 (intendet for use
together with GCC 2.95.[23]) driving GCC 3.2.1
The following modification of [gpc] and [gpcpp] sections in djgpp.env
fixed the problem:
,---- [ djgpp.env ]
| [gpc]
| COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
| #LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib
| LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;
| %DJDIR%/lib/gcc-lib/djgpp/3.21;
| %DJDIR%/lib/gcc-lib/djgpp/2.953/units
| #C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include
| C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;
| %DJDIR%/lib/gcc-lib/djgpp/3.21;
| %DJDIR%/lib/gcc-lib/djgpp/3.21/include
|
| [gpcpp]
| #C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include
| C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;
| %DJDIR%/lib/gcc-lib/djgpp/3.21;
| %DJDIR%/lib/gcc-lib/djgpp/3.21/include
`----
All on one line, after each "="!!
A have to point out, that some modifications (ie the last LIBRARY_PATH
member) seem to be rather silly -- i introduced the changes all
together and 've been to lazy to sort out the essentials ;-)
Hope it helps,
-- XenoAntares
--
Hasta la victoria siempre -- Che
- Raw text -