Hello All!
I'm trying to use gpc under cygwin and have a trouble when compiling/linking even a simple example such as: program test; begin writeln("Hello World") end. gpc test.pas returns the following message: /usr/lib/gcc-lib/i686-pc-cygwin/3.2.3/libgpc.a(rts.o)(.text+0x18ef):rts.c: undef ined reference to `_ftruncate64' /usr/lib/gcc-lib/i686-pc-cygwin/3.2.3/libgpc.a(rts.o)(.text+0x18b4):rts.c: undef ined reference to `_lseek64' collect2: ld returned 1 exit status I have the same message with examples from /usr/doc/gpc/demos. It's seems something is missing in the install for the linker. I'm using (just installed this week): gpc binary: gpc-20030830-with-gcc.i686-pc-cygwin.tar.gz from www.gnu-pascal.de and cygwin: ftp%3a%2f%2fftp.funet.fi%2fpub%2fmirrors%2fcygwin.com%2fpub%2fcygwin latest presently available said as 1.5.5-1 downloaded from ftp.funet.fi after setup.exe 2.415 got from cygwin.com "Install Cygwin now" If you have any idea or know any contact who could help please advice. Thanks for your help!
Hallo Pascal,
I'm trying to use gpc under cygwin and have a trouble when compiling/linking even a simple example such as:
[...]
I'm right now busy in compiling GCC 3.3.1 including GPC for Cygwin and will release it this weekend (probably). It should be available at the Cygwin mirrors the next week.
Gerrit
On 9 Oct 2003 at 17:25, Pascal Pottier wrote:
Hello All!
I'm trying to use gpc under cygwin and have a trouble when compiling/linking even a simple example such as:
program test; begin writeln("Hello World") end.
gpc test.pas returns the following message: /usr/lib/gcc-lib/i686-pc-cygwin/3.2.3/libgpc.a(rts.o)(.text+0x18ef):rts .c: undef ined reference to `_ftruncate64' /usr/lib/gcc-lib/i686-pc-cygwin/3.2.3/libgpc.a(rts.o)(.text+0x18b4):rts .c: undef ined reference to `_lseek64' collect2: ld returned 1 exit status
[...]
A problem arose with ftruncate64 earlier in the year, and Frank sent a patch for it on April 16. The patch is now part of the GPC sources. Therefore, this problem should not arise now. I certainly have been unable to reproduce it.
Perhaps you have a library mismatch. Try going to your Cygwin "lib" directory and run the command "grep ftruncate64 *" - this is what I get:
Binary file libc.a matches Binary file libcygwin.a matches Binary file libg.a matches
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/