I'm currently using Code::Blocks on Windows 7 with MinGW. I want to learn pthreads but, as far as I can tell , MinGW doesn't support pthreads. MinGW-w64 does however support pthreads. My goal is to install MinGW-w64. In order to do this do I just follow the instructions on this page
http://wiki.codeblocks.org/index.php/MinGW_installation ? Will I have any problems because I already have MinGW installed? Thanks for your patience; this is a difficult subject for me.
Edit: Do I just need to download and install the TDM-GCC found here
http://tdm-gcc.tdragon.net/about ?
Edit 2: This edit is for if anyone in the future needs help with this. I figured it out and so far it appears to work. The steps are below:
Step 1: Download the TDM-GCC compiler suite for 32- and 64-bit Windows based on the GNU toolchain found here
http://tdm-gcc.tdragon.net/download . Make sure to download the TDM64 MinGW-w64 edition. It's called tdm64-gcc-5.1.0-2.exe.
(The TDM-GCC suite includes MinGW-w64)
Step 2: Install the compiler suite by running the exe.
Step 3: After it's installed, open Code::Blocks and go to -->Settings-->Compiler-->Toolchain executables.
Step 4: Under "Compiler's Installation directory", click on "..." and choose the folder where you downloaded TDM-GCC.
Step 5: Under the tab "Program Files" you will see a number of fields.
Step 6: The first field is "C Compiler". Click "..." after that field and select "x86_64-w64-mingw32-gcc.exe"
Step 7: The second field is "C++ Compiler". Click "..." after that field and select "x86_64-w64-mingw32-g++.exe"
Step 8: The third field is "Linker for dynmaic libs:". Click "..." after that field and select "x86_64-w64-mingw32-g++.exe"
Step 9: The fourth field is "Linker for static libs:". Click "..." after that field and select "ar.exe"
Step 10: The next field is a drop down menu called "Debugger". I left mine on "GDB/CDB debugger: Default"
Step 11: The next field is "Resource compiler:". Click "..." and select "windres.exe"
Step 12: The last field is "Make Program:". Click "..." and select "mingw32-make.exe".
Step 13: Click "OK" and you're ready to go!
Extra Notes: What's nice about this suite is that it not only includes support for pthreads but also OpenMP! Happy threading!!