User forums > Help
Configure Codeblocks
tuchin:
Windows 10 Home 64bit. Using MSYS, I downloaded the MinGW distribution, as well as everything needed to create GTK programs. In the MSYS directory, I got the mingw64 directory. I transferred this directory to the C drive, then installed Codeblocks using the installer codeblocks-17.12-setup.exe. In the Settings-Compiler-Search Directory I select C:\mingw64\bin - I receive a message that the compiler was not found. Although in this directory there are gcc.exe, g ++. Exe, c ++. Exe, cmake.exe and others. Help, please, correctly configure the codeblocks.
oBFusCATed:
--- Quote from: tuchin on November 24, 2018, 05:03:30 pm ---C:\mingw64\bin - I receive a message that the compiler was not found.
--- End quote ---
I guess we should add explicit check and popup a message box when people do this.
In the dialog where you've entered this path is explicitly stated that you should omit the bin from the path!!!
Read please.
stahta01:
Edit: The below is for MSys2 with 64 bit MinGW GCC!!
Installation directory of
--- Code: ---C:\msys64\mingw64
--- End code ---
Works for me.
C Compiler: x86_64-w64-mingw32-gcc.exe
C++ Compiler x86_64-w64-mingw32-g++.exe
Linker for Dyn. x86_64-w64-mingw32-g++.exe
Tim S.
tuchin:
Tim S, thanks for the answer. An error occurred in the console project C++:
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/8.2.0/include/stddef.h:1:15: fatal error: stddef.h: No such file or directory. An error occurs on a line
--- Code: ---#include_next <stddef.h>
--- End code ---
in file c:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\8.2.0\include\stddef.h. How to fix it?
stahta01:
Post a full rebuild log.
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Navigation
[0] Message Index
[#] Next page
Go to full version