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]

pthread_t definiton and STL...



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

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