Hi Maurice,
Thank you for the Answer. The Djgpp is installed on root D./Djgpp as in line 2.
The Pascal code is placed on the adress shown in line one,
D:\DOCUME~1\ADMINI~1\Desktop\...\Pascal\INLUPP~1
Should the pascal code be placed at the same place as the Djgpp/bin or is it ok as it is.
I checked for the gcc in my Djgpp folder I found one "libgcc.a" in D./Djgpp/lib. Was is this gcc you are refering to ?
Anyway, I typed the commands you gave and got some results. Some of them did not answer. Maybe I typed them wrongly . The DOS result is as following:
*************************************************************
D:\Djgpp\bin>set.lst
Environment variable .lst not defined
D:\Djgpp\bin>gpc --print-search-dirs
install: /usr/lib/gcc-lib/go32\2.7.2.1\
programs: /usr/lib/gcc-lib/go32\2.7.2.1\;/usr/lib/gcc-lib/go32\;/usr/lib/gcc/go3
2\2.7.2.1\;/usr/lib/gcc/go32\;/usr/go32\bin\go32\2.7.2.1\;/usr/go32\bin\
libraries: /usr/lib/gcc-lib/go32\2.7.2.1\;/usr/lib/gcc/go32\2.7.2.1\;/usr/go32\l
ib\go32\2.7.2.1\;/usr/go32\lib\;/usr/lib/go32\2.7.2.1\;/usr/lib/;/lib/go32\2.7.2
.1\;/lib/;/usr/lib/go32\2.7.2.1\;/usr/lib/
D:\Djgpp\bin>dirs.lst
'dirs.lst' is not recognized as an internal or external command,
operable program or batch file.
D:\Djgpp\bin>dirs
'dirs' is not recognized as an internal or external command,
operable program or batch file.
D:\Djgpp\bin>gpc -v Inlupp1.p
gpc.exe: Inlupp1.p: No such file or directory (ENOENT)
gpc version 2.0(2.7.2.1)
D:\Djgpp\bin>comp.lst
'comp.lst' is not recognized as an internal or external command,
operable program or batch file.
*********************************************************
Besides, should I also install gcc ? I only insatlled Djgpp from an Installation disc. I do not know where this other one pp-folder came from ?
Does Djgpp include all neccessery files including gcc ? I thought everything neede was in Djgpp?
Best Regards /b
Maurice Lombardi <Maurice.Lombardi@ujf-grenoble.fr> wrote:
b b a ??crit:
> Hi guys,
>
> I have a problem with compiling my first Pascal program. This directly
> after my Installation of GNU pascal. The problem is:
>
> I installed the latest version of GNU Pascal compiler on my PC with
> windows XP Pro. I wrote my code in Emacs at the same PC. Then I used my
> DOS-prompt and went to the route of the file that contained my code and
> wrote the command:
>
> gpc.p and enter.
> D:\DOCUME~1\ADMINI~1\Desktop\...\Pascal\INLUPP~1>gpc Inlupp1.p
>
> I got first some errors in compilation. I made necessary changes in the
> code and run again. At this moment it should not give any fault and a
> specific *.exe file should be created.
>
> Instead I got this Answer from the compiler:
>
> D:\Djgpp\bin/ld.exe: cannot open crt0.o: No such file or directory (ENOENT) (**1)
>
> That was strange. As you know the Crt0.o is the standard run-time
> startup routine (crt0.o). Now, I checked under the Djgpp\bin and I could
> find the ld.exe file. I checked also the crt0.o file in Djgpp and exists
> in lib directory:
>
> D:\Documents and Settings\Administrator\Desktop\...\Pascal\Djgpp\lib (**2)
>
> I checked the property of crt0.o file. It was not empty and it had
> attribute archive.
>
> My question is when does this appear and what does it depend on ?
>
> Is it not that "\bin/ld.exe" should be "\bin\ld.exe" or that is not the
> problem what can be the reason ?
No.
Seems inproper installation.
I do not understand: is the Djgpp directory at the root level on
drive D: , as in indicated in line (**1) or in some
subdirectory as the line (**2) seems to indicate ?
Have you installed the gcc with the same version as your gpc ?
What is the content of the environmenr variable DJGPP ?
To be sure type at dos prompt
set > set.lst
type also
gpc --print-search-dirs > dirs.lst
gpc -v Inlupp1.p > comp.lst
and send here the three lst files
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.Lombardi@ujf-grenoble.fr