After 2 days I figured it out.
First: I installed the minGW 64 for Windows OS.
Next: I set up C::B
to use the minGW_64
after this post.
Moreover: I added to the linker libs ..\libs\Pre-built.2\lib\x64\libpthreadGC2.a
and ..\libs\Pre-built.2\lib\x64\pthreadVC2.lib
. Finally, I added to my project the pthreadGC2.dll
(64bit version!).
Lesson learned, don't mix lib. and compiler with 86 and 64.