From: "Rohn Wood" <rohn@selway.umt.edu>
Subject: sysmisc.h syntax error?
Date: 1996/10/11 [thread overview]
Message-ID: <01bbb7be$b7075180$1b0e8396@ufo.umt.edu> (raw)
Is there a c-programmer out there who can spot the syntax error in this
code snippet from Digital UNIX 4.0's /usr/include/sys/sysmisc.h file? When
attemping to compile just a simple c++ program, the compile dies.
Similarly, attempts to compile libg++ die on this same file in the same
line-range (100-106). I have included below, the output from the compile
of the simple program, the code of th esimple program, and the offending
range of lines in sysmisc.h
Any insights would be appreciated. I am not (obviously) a C programmer.
------------------------- compile stdout
---------------------------------------------------------
# g++ t.cc
In file included from /usr/include/sys/timers.h:46,
from
/usr/public/lib/gcc-lib/alpha-dec-osf/2.7.2/include/time.h:167,
from t.cc:1:
/usr/include/sys/sysmisc.h:100: syntax error before `*'
----------------------------------------------------------------------------
-------------------
The code which produced this:
------------------------------------ t.cc
code-----------------------------------------------------
#include <time.h>
main()
{
}
------------------------------ sysmisc.h
-----------------------------------------------------------
The offending lines of code in sysmisc.h are: (line 100...)
#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 199506L)
/*
* These fields appear only when compiling
* for threaded applications. See SIGEV_THREAD
* above.
*/
void (*_sigev_notify_function) __((sigval_t));
pthread_attr_t *_sigev_notify_attribute;
/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LINE WITH SYNTAX ERROR
*/
#endif /* _POSIX_C_SOURCE >= 199506L */
begin 600 out.txt
M(R!G*RL@="YC8PI);B!F:6QE(&EN8VQU9&5D(&9R;VT@+W5S<B]I;F-L=61E
M+W-Y<R]T:6UE<G,N:#HT-BP*(" @(" @(" @(" @(" @("!F<F]M("]U<W(O
M<'5B;&EC+VQI8B]G8V,M;&EB+V%L<&AA+61E8RUO<V8O,BXW+C(O:6YC;'5D
M92]T:6UE+F@Z,38W+ H@(" @(" @(" @(" @(" @(&9R;VT@="YC8SHQ.@HO
M=7-R+VEN8VQU9&4O<WES+W-Y<VUI<V,N:#HQ,# Z('-Y;G1A>"!E<G)O<B!B
+969O<F4@8"HG"@HO
`
end
end
reply other threads:[~1996-10-11 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox