# glfwCreateThread() - doesn't work with class method

**URL:** <https://discourse.glfw.org/t/glfwcreatethread-doesnt-work-with-class-method/523>\
**Category:** support\
**Created:** [January 20, 2013, 5:39am UTC](https://discourse.glfw.org/t/glfwcreatethread-doesnt-work-with-class-method/523 "2013-01-20T05:39:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [January 20, 2013, 5:39am UTC](https://discourse.glfw.org/t/glfwcreatethread-doesnt-work-with-class-method/523/1 "2013-01-20T05:39:40Z")

</div>

**anonymous** wrote on [Sunday, January 20, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/4520ce05/#51d5):

Hello people. glfwCreateThread() - doesn’t work with class method.

I have code:

Thread::Thread(GLFWthreadfun func)  
{  
threadID = glfwCreateThread(func, NULL);  
}

And I have error:  
error: no matching function for call to 'Thread::Thread()

My compiler is MinGW.

What have I to do? Please advise a solution. I do not speak english because forgive me mistakes.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [March 19, 2013, 10:57pm UTC](https://discourse.glfw.org/t/glfwcreatethread-doesnt-work-with-class-method/523/2 "2013-03-19T22:57:46Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Tuesday, March 19, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/4520ce05/#4e60):

This is not a problem with GLFW.
