Hi,
I have the problem that gcc complains about an error that shouldn’t be
there:
qcc -g -shared -DDEUTA -c Alarm.cpp -o Alarm.o
In file included from /usr/include/sched.h:15,
from /usr/include/pthread.h:31,
from Port.h:29,
from Protocol.h:23,
from Alarm.cpp:18:
/usr/include/sys/types.h:141: declaration does not declare anything
cc: error 33
The following sets off the error (from types.h)
#if defined(__PTHREAD_T)
typedef __PTHREAD_T pthread_t;
#undef __PTHREAD_T
#endif
__PTHREAD_T is defined in /usr/include/sys/target_nto.h.
Where is the problem? If I remove this include, a similar error comes with
other includes.
Under Patch A everything worked well, but this error comes on a freshly
installed Patch B system.
Any hints?
Thanx, Sven
–
Sven Fischer – DEUTA-Werke GmbH, Abteilung EIT
Dipl.-Phys. Paffrather Str. 140, 51465 Bergisch Gladbach, Germany
Tel.: +49-(0)2202-958-216 Fax.: +49-(0)2202-958-226
Please note the disclaimer: http://www.deutaeit.de/disclaimer.html
Does it have the same problem if you have a small file such as
main.cpp----------
#include <pthread.h>
int main(void)
{
return 0;
}
Sven Fischer <fischer@deutaeit.de> wrote:
Hi,
I have the problem that gcc complains about an error that shouldn’t be
there:
qcc -g -shared -DDEUTA -c Alarm.cpp -o Alarm.o
In file included from /usr/include/sched.h:15,
from /usr/include/pthread.h:31,
from Port.h:29,
from Protocol.h:23,
from Alarm.cpp:18:
/usr/include/sys/types.h:141: declaration does not declare anything
cc: error 33
The following sets off the error (from types.h)
#if defined(__PTHREAD_T)
typedef __PTHREAD_T pthread_t;
#undef __PTHREAD_T
#endif
__PTHREAD_T is defined in /usr/include/sys/target_nto.h.
Where is the problem? If I remove this include, a similar error comes with
other includes.
Under Patch A everything worked well, but this error comes on a freshly
installed Patch B system.
Any hints?
Thanx, Sven
–
Sven Fischer – DEUTA-Werke GmbH, Abteilung EIT
Dipl.-Phys. Paffrather Str. 140, 51465 Bergisch Gladbach, Germany
Tel.: +49-(0)2202-958-216 Fax.: +49-(0)2202-958-226
Please note the disclaimer: > http://www.deutaeit.de/disclaimer.html
–
cburgess@qnx.com