pthread declaration problem
Mark Weaver
mark@npsl.co.uk
Wed May 12 01:00:00 GMT 2004
> 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.
More information about the Pthreads-win32
mailing list