This is the mail archive of the
mailing list for the pthreas-win32 project.
Newbie: Include file issues?
- From: "Smith, David A2" <david dot a2 dot smith at lmco dot com>
- To: pthreads-win32 at sourceware dot org
- Date: Fri, 23 Jun 2006 14:27:59 -0400
- Subject: Newbie: Include file issues?
Hey guys and gals,
I'm trying to port some linux code to win32.? I downloaded and built pthreads-w32 with no problems.? When I try to use (include and link) it however, I get a lot of compilation errors.?
error C2065: 'pthread_attr_t' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'attr'
error C3861: 'pthread_attr_init': identifier not found, even with argument-dependent lookup
The problem seems to be that pthread_attr_t is a typedef of pthread_attr_t_*, which is never defined.
I noticed some people including implements.h in what appears to be an incomplete thread in the archive. When I include implements.h after pthread.h, it doesn't do any good. This doesn't appear to be a common problem... does anyone know why it is happening?