Check if you have another mingw installation somewhere its usually caused by having two mingw folders on your machine.

2012/11/28 Caygri Elena <>
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?

Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
MinGW-users mailing list

This list observes the Etiquette found at
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:

Ralph Engels