Unresolved external symbol on pthread_mutex_init

Hi,

I am new to cocos2d-x, and when I tried to use the pthread_mutex_init method in the my HelloWord win10 project, I got the following error:

2>HelloWorldScene.obj : error LNK2019: unresolved external symbol “void __cdecl cocos2d::pthread_mutex_init(void * *,void *)” (?pthread_mutex_init@cocos2d@@YAXPAPAXPAX@Z) referenced in function “public: __thiscall HelloWorld::HelloWorld(void)” (??0HelloWorld@@QAE@XZ)

Here is my code change in order to use the pthread_mutex_init method (before making these change, the code can run without issue.)

#include “platform\winrt\CCPThreadWinRT.h”

HelloWorld::HelloWorld()
: _targets(NULL)
, _projectiles(NULL)
, _projectilesDestroyed(0)
{
pthread_mutex_t s_connectMutex;
pthread_mutex_init(&s_connectMutex, NULL);

}

I checked the pthread_mutex_init method, and it is defined in the file CCPThreadWinRT.cpp, and that file has been compiled by the libcocos2d project, which is referenced by the HelloWord project.

Can anyone help to tell me what is wrong with my code.

Thanks
Michael