On 19 July 2012 07:06, Mohsen Pahlevanzadeh wrote: > Thank you , > i migrated to "-ansi -pedantic -std=c++11 -std=c++98" > but get the following warning: > warning: converting from ‘void (NetworkSocket::*)()’ to ‘void* > (*)(void*)’ [-pedantic] > my line is: > if (pthread_create(threadArray, NULL, (void*(*)(void*)) > &NetworkSocket::threadTest , this) != 0) > Do you have any idea that i dont prevent to above warning? This question is not about GCC so this list is not the right place for it. Please find somewhere more appropriate to learn C++, e.g. http://stackoverflow.com/questions/1151582/pthread-function-from-a-class