Hi, Dear author:
I’m using your Teal lib under Win32 system(WinXP).
You’d better modify the “teal_hdl_connect.cpp” file like below:
teal_hdl_connect.cpp: line 64
...
#ifdef _MSC_VER
extern "C" __declspec(dllexport) s_tfcell veriusertfs[] =
#else
s_tfcell veriusertfs[] =
#endif
...
So the “eriusertfs” will be expoted automatically. No other works should be done by the coders.
About the pthread lib:
I found the “pthreads for win32″ library is necessary for teal under Win32 OS.
Is it possible to use MS windows’ default “CreateThread” APIs instead?

#1 by mike on April 5th, 2007
Hi Shaohao,
Very Cool! I will make the change.
Did you create a project or use the bat files in the test area?
I have had teal on windows in the past. I just don’t have the bandwidth to keep up. Would you be willing to test a new release on Teal on windows? I plan to release once every three months or so.
Yes, I did have a portable mutex class in some previous revs of teal. It’s actually really a better way. Please feel free to modify teal to have such a concept and I will merge the changes into the mainline. The class interface can be simple:
class teal_mutex_internal {
public:
teal_mutext_internal () : acquired_ (false) {}
virtual ~teal_mutex_internal () {};
void acquire () {assert (!acquired); acquire_ (); acquired_ = true}
void release () {assert (acquired); release_ (); acquired_ = false}
protected:
virtual void acquire_ () = 0;
virtual void release_ () = 0;
private:
teal_mutex_internal (const teal_mutex_internal&);
void operator= (const teal_mutex_internal&);
}
Take care,
Mike
#2 by guenter on April 3rd, 2007
About the pthread lib:
I found the “pthreads for win32″ library is necessary for teal under Win32 OS.
Is it possible to use MS windows’ default “CreateThread” APIs instead?
Do you see any advantage in that?
Is the CreateThread API as portable as the pthread library?
I just wonder whether it is as simple to use under any of the other compilers as pthread.
Cheers,
Guenter