On 17 Oct 2004 at 15:41, Frank Heckenbach wrote:
I have uploaded a new beta version of GPC to http://www.g-n-u.de/gpc/!
Compiles okay under Mingw. My initial tests (a program that uses the Crt unit) throws up this:
"In file included from d:/mingw/lib/gcclib/mingw32/3.2.3/units/crtc.c:46: d:/mingw/include/unistd.h:23: error: syntax error before "off_t" d:/mingw/include/unistd.h:24: error: syntax error before "off_t" d:/mingw/include/unistd.h: In function `ftruncate': d:/mingw/include/unistd.h:26: error: `__fd' undeclared (first use in this function) d:/mingw/include/unistd.h:26: error: (Each undeclared identifier is reported only once d:/mingw/include/unistd.h:26: error: for each function it appears in.) d:/mingw/include/unistd.h:26: error: `__length' undeclared (first use in this function)"
Any clues? This is the offending code in unistd.h:
/* This is defined as a real library function to allow autoconf to verify its existence. */ int ftruncate(int, off_t); __CRT_INLINE int ftruncate(int __fd, off_t __length) { return _chsize (__fd, __length); }
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/