| Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) |
| Notice: | Welcome to the Digital UNIX Conference |
| Moderator: | SMURF::DENHAM |
| Created: | Thu Mar 16 1995 |
| Last Modified: | Fri Jun 06 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 10068 |
| Total number of notes: | 35879 |
When the following source:
------------------
#include <sys/time.h>
main (){}
------------------
is compiled using gcc (2.7.2), on digital UNIX 4.2B, we get:
In file included from /usr/include/sys/siginfo.h:37,
from /usr/include/sys/signal.h:56,
from /usr/include/sys/time.h:84,
from temp.c:1:
/usr/include/sys/sysmisc.h:100: parse error before `pthread_attr_t'
/usr/include/sys/sysmisc.h:100: warning: no semicolon at end of struct or union
/usr/include/sys/sysmisc.h:100: warning: no semicolon at end of struct or union
/usr/include/sys/sysmisc.h:102: warning: data definition has no type or storage class
/usr/include/sys/sysmisc.h:103: parse error before `}'
/usr/include/sys/sysmisc.h:103: warning: data definition has no type or storage class
------------------
Any idea what's wrong here?
Thx,
Y.
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 9164.1 | Why are you including sys/time.h? | WTFN::SCALES | Despair is appropriate and inevitable. | Thu Mar 13 1997 13:03 | 16 |
.0> Any idea what's wrong here? Yes, I have several. First, since we having finished implementing V4.1, I doubt you're running on V4.2B... ;-) Seriously, though. The reason why your program is not compiling is that it is not including all the right header files in the right orders. Whether that is your fault or a fault in sys/time.h remains to be seen. (There is no guarantee that any given header file will compile on it's own...) So, why are you including sys/time.h? Webb | |||||