Having both "plain" MinGW and "MinGW-w64" can cause conflicts if their PATHs overlap. To help you fix this quickly, could you tell me: Are you using MSYS2 , Code::Blocks , or a standalone MinGW ?