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/