This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]