8^) I'am trying to compile a file that uses the header fileQuote:Cooper) writes:
8^) dirent.h. The compiler (gcc) does not know what the variable off_t
8^) is ? Is this defined in some library ?
8^) P.S. I'am a student I can't afford books so please don't list them unless
8^) there in the library.
Anything ending in "_t" is most likely a type (i.e. offset type).
In the future, if something is undefined, but it's not your fault
(er...um...), try doing something like this:
% grep off_t /usr/include/*.h
% grep off_t /usr/include/sys/*.h
That'll get it most of the time.
TIP: If it's a declaration, you might even want to "| grep typedef"
to narrow the output down to the necessities.
As for the books and $, all the resources you need are sitting in
/usr -- man pages, header files, and libs (use nm) are typically
enough to figure out the tricks!
Hope this doesn't help. Dan Checkoway The MathWorks, Inc.
5086531396367 Cochituate Place
6174678642 Natick, MA 01760
Dan Checkoway The MathWorks, Inc.