I'm building a project using gcc and coming up with a couple of missing
defines. I've tried this with both native gcc with 686 for a target and
ppc-elf-gcc with a ppc target.
When it includes stdio.h there are a couple of undefined symbols, off_t and
clock_t.
In file included from ..\a01\a0101.c:70:
/usr/include/stdio.h:232: error: parse error before "off_t"
/usr/include/stdio.h:233: error: parse error before "ftello"
/usr/include/stdio.h:362: error: parse error before "__getdelim"
/usr/include/stdio.h:363: error: parse error before "__getline"
#ifndef __STRICT_ANSI__
#ifdef _COMPILING_NEWLIB
int _EXFUN(fseeko, (FILE *, _off_t, int));
_off_t _EXFUN(ftello, ( FILE *));
#else
int _EXFUN(fseeko, (FILE *, off_t, int)); <<<<<<<<<<<<<<<<<<<
off_t _EXFUN(ftello, ( FILE *));
#endif
The "parse error" message is confusing, but the issue appears to be off_t
not being defined.
If I define it locally, the problem goes away.
I think I am missing a command line setting so they aren't included. There
appear to be a couple of different types.h files included, but apparently a
conditional isn't set right to get these enable
Here is the command line:
C:\cygwin\bin\gcc -c -IC:\libsrc34\inc a0101.c
There are a couple of -D on the line, but they are only for the file being
built, and definitely not related to the problem.
Any ideas or suggestions on another ng to post this to?
--
Scott
Validated Software
Lafayette, CO
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4538 (20091024) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com