delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/15/14:37:23

From: "Niels Heirbaut" <heirbaut AT pi DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Trouble with GPC
Date: 15 Oct 1996 15:31:55 GMT
Organization: Planet Internet
Lines: 97
Message-ID: <01bbbab6$1e0cf340$LocalHost@default>
NNTP-Posting-Host: 145.220.220.19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

I don't know if this is the right group to post to (I haven't found an
alternative), so please forgive me if this post is off topic.

I downloaded the binary files for GPC (version 2.7.2) and extracted them to
my DJGPP directory. But when I tried to compile the program hello.pas (see
below) with: C:\>gpc hello.pas -o hello.exe

I got the next message:
C:\DJGPP\BIN/ld.exe: cannot open crt0.o: No such file or directory (ENOENT)

I checked if crt0.o existed (it did). I also tried to put the directory
(C:\DJGPP\LIB) in my PATH-variable, but still the same response. In the
info file I read something about setting the variable GPC_EXEC_PREFIX. I
tried this (in DJGPP.ENV and AUTOEXEC.BAT) but it still didn't work.
Here are my program, my AUTOEXEC.BAT and my DJGPP.ENV files:


Program file:

PROGRAM hellotest (input,output);
BEGIN
        WriteLn('Hello World')
END.


AUTOEXEC.BAT:

@ECHO OFF
PROMPT $p$g
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\DJGPP\BIN;C:\PKWARE
SET TEMP=C:\DOS
SET DJGPP=C:\DJGPP\DJGPP.ENV
rem - By Windows Setup - C:\WINDOWS\COMMAND\MSCDEX /D:MSCD001 /M:8
rem mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
rem mode con codepage select=850


DJGPP.ENV:

#= Don't edit this line unless you move djgpp.env outside
#= of the djgpp installation directory.  If you do move
#= it, set DJDIR to the directory you installed DJGPP in.
#=
DJDIR=%:/>DJGPP%

+USER=dosuser
+TMPDIR=%DJDIR%/tmp
+EMU387=%DJDIR%/bin/emu387.dxe
+LFN=n

[bison]
BISON_HAIRY=%DJDIR%/lib/bison.hai
BISON_SIMPLE=%DJDIR%/lib/bison.sim

[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;%



DJDIR%/contrib/grx20/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/incl



ude
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang



/objc
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc

[gcc]
COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib

[info]
INFOPATH=%/>;INFOPATH%%DJDIR%/info

[gpc]
GPC_EXEC_PREFIX=%/>;GPC_EXEC_PREFIX%%DJDIR%/lib


The c-compiler is working correctly and I am using Windows 95.
Could someone please help me out?



Regards,


Niels Heirbaut
heirbaut AT pi DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019