I install codeblock with mingw and install glut. But when I compile tell me

c:\mingw\bin\..\lib\gcc\mingw32\4.6.2\..\..\..\crt2.o||In function `_mingw_CRTStartup':|
C:\MinGW\msys\1.0\src\mingwrt\..\mingw\crt1.c|193|undefined reference to `__dyn_tls_init_callback'|
||=== Build finished: 1 errors, 0 warnings ===|


What is the problem?