Tim S, thanks for the answer. An error occurred in the console project C++:#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
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 in file c:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\8.2.0\include\stddef.h. How to fix it?
Do the MSys2 Upgrade command of
To make sure your MSys2 installation is up to date.
After you get that done correctly.
Edit: You might need to kill the pacman.exe process to do the update https://winaero.com/blog/kill-process-windows-10/ (https://winaero.com/blog/kill-process-windows-10/)
Do
pacman -S mingw-w64-x86_64-gcc
to reinstall the GCC Compiler that must be damaged by you copying files around.
And, post a build log if you still have problems after that.
Tim S.
I have additional questions:
1. Did not find the gdb debugger in msys64\mingw64. How to install it?
2. How can I get information about all the parameters of pacman in msys2?
3. I would like to learn how to make gui using GTK+. When I tried to make a project GTK+, the codeblock requested the location of the files for creating the GTK application ($GTK). I did not find the directory GTK in msys64\mingw64. Tell me, please, how to set up a codeblock to create a project of the GTK?
Post a link to the website with the example GTK code you want to run; when I have time will see if I can figure it out once more.
Note: I believe the GTK and MSys2 might have already been answered in this forum. So, I would suggest searching.
To install the normal full MinGW 64 toolchain run
pacman -S --needed mingw-w64-x86_64-toolchain
or
Tim S.