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 <filename>.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