nall@sun8.scri.fsu.edu (John Nall) (10/06/90)
Having been once again bit by something which bites me from time to time, I thought I would just throw it out to be sure that everyone is aware of it (kind of sharing the pain). The following program: #include <pwd.h> #include <sys/types.h> main() { } does not compile, and, indeed, produces scary errors that say: "/usr/include/pwd.h", line 8: } missing "/usr/include/pwd.h", line 8: (warning) old-fashioned initialization, insert = "/usr/include/pwd.h", line 8: pw_uid undefined "/usr/include/pwd.h", line 9: (warning) old-fashioned initialization, insert = "/usr/include/pwd.h", line 9: pw_gid undefined "/usr/include/pwd.h", line 16: } deleted "/usr/include/sys/types.h", line 27: redeclaration of gid_t with different type "/usr/include/sys/types.h", line 33: redeclaration of uid_t with different type On the other hand, as I have to from time to time remember, the same program, with a mere rearrangement of the include statements, will compile and execute with nary an error. #include <sys/types.h> #include <pwd.h> main() { } Gawd, how I love working with computers!!!! -- John W. Nall | Supercomputation Computations Research Institute nall@sun8.scri.fsu.edu | Florida State University, Tallahassee, FL 32306 "Real programmers can write assembly code in any language." - Larry Wall