This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
pthread_t definiton and STL...
- Subject: pthread_t definiton and STL...
- From: Ales Pour <pour at princip dot cz>
- Date: Thu, 11 Jan 2001 15:04:42 +0100
- CC: pthreads-win32 at sources dot redhat dot com
- Organization: Princip a.s.
- References: <Pine.LNX.4.10.10012291848120.1449-100000@special.ise.canberra.edu.au>
Hello,
I'm having a tiny trouble with pthread_t type definition since I've been
using this _great_ library.
The following code doesn't compile with VC5 (SP3) using SGI's STL:
#include <vector>
using namespace std;
#include "pthread.h"
int main()
{
vector<pthread_t> _v;
return 0;
}
VC complains:
...\include\stl\stl_construct.h(58) : error C2027: use of undefined type
'pthread_t_'
I fix this problem by adding '#include "implement.h"' to pthread.h ...
Now I wonder if there's better way to avoid this error.
Thank you a lot.
Ales Pour
--------------
Ales Pour
Princip a.s.
Czech Republic