Hi, 1. I installed GNU Pascal for Cygwin32. When I try to compile and link a pascal source file I get the message ld.exe: cannot open crt0.o: No such file or directory (ENOENT) I know crt0.o contains the startup code for C. Where can I find that file, and if found, where do I place it so that the linker can find it? 2. I tried to run the Makefile for the borland pascal extensions with GNU Make 3.75 for DJGPP V2. It gave an error message: for x in head.pas nohead.pas cstparam.pas caseelse.pas switches.pas bitmanip.pas incdec.pas minimax.pas mem.pas abso.pas asmnames.pas openarr.pas varrec.pas voidparm.pas ; do \ rm -f a.out 2>/dev/null ; \ gpc -g -O3 --automake="-g -O3" $x 2>/dev/null ; \ echo -n "$x: " ; \ if [ -f "a.out" ] ; then ./a.out ; else echo "failed" ; fi ; \ done ; \ rm myunit.o myunit.gpi a.out 2>/dev/null ; Command line too long. make.exe: *** [bptest] Error -1 So I wonder, is this the right version of Make to use? 3. I also installed GNU Pascal for DJGPP version 2. That works fine (till now)! Hans Lunsing e-mail: jlunsing@doge.nl
Hans Lunsing a écrit: 2. I tried to run the Makefile for the borland pascal extensions with GNU Make 3.75 for DJGPP V2. It gave an error message:
run make dostest (look into the makefile to understand) it compiles, then you have to execute e.g. by issuing for %1 in (*.exe) do %1 (you can also include this line into the makefile after dostest) -- 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 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr
According to Hans Lunsing:
1. I installed GNU Pascal for Cygwin32. When I try to compile and link a pascal source file I get the message
ld.exe: cannot open crt0.o: No such file or directory (ENOENT)
I know crt0.o contains the startup code for C. Where can I find that file, and if found, where do I place it so that the linker can find it?
Not being a CygWin32 expert I can only recommend to double-check whether you have installed the corresponding (beta-??) version of CygWin32 for your version of GPC. It must contain `crt0.o'. Hope this helps, :-/ Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980511 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
participants (3)
-
Hans Lunsing -
Maurice Lombardi -
Peter Gerwinski