This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
RE: pthread declaration problem
- From: "Mark Weaver" <mark at npsl dot co dot uk>
- To: "jefe goode" <jefe_goode at yahoo dot com>,<pthreads-win32 at sources dot redhat dot com>
- Date: Wed, 12 May 2004 02:00:47 +0100
- Subject: RE: pthread declaration problem
> Complete program below:
>
> compiler output is 7 errors -- (all type info not
> found -- the other 6 errors are knock-on ones )
>
> C:\PROJECTS\CP3\Thread1\Thread1.cpp(22) : error C2065:
> 'pthread_t' : undeclared identifier
>
>
> Regards and Thanks
>
> Jefe
> --------------- Listing below --------------
>
> #include "Thread.h"
> #include "pthread.h"
> #include "sched.h"
> #include "semaphore.h"
> #include <stdlib.h>
> #include <unistd.h>
> #include <stdio.h>
>
> #include "stdafx.h"
> void print_message_function( void *ptr );
>
If using PCH (precompiled headers) under VC6, then all lines before #include
"stdafx.h" are ignored. Try moving this to the top or turning off PCH.