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)
According to Hans Lunsing:
- 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