Smart Notes
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
Add MinGW-w64 to the Windows PATH Environment Variable:
- After installation is complete, you must add the MinGW-w64
binfolder to your system's PATH variable so that it can be accessed from any terminal (like Command Prompt or PowerShell). - In the Windows search bar, type "environment variables" and select Edit the system environment variables.
- In the System Properties window, click the Environment Variables... button.
- Under "User variables for [Your Username]", select the
Pathvariable and click Edit... - Click
Newand add the path to the MinGW-w64binfolder. By default, this path isC:\msys64\ucrt64\bin. - Click OK on all windows to save the changes.
Verify the Installation:
- Open CMD
- Type
gcc --versionand press Enter. You should see output indicating the installed GCC compiler version, confirming a successful installation.
pacman -S mingw-w64-x86_64-fltk
Use windres (available in MSYS2/MinGW):
windres memvort.rc -O coff -o memvort.res
This produces the memvort.res file.
Run from the memvort/ folder:
g++ src/main.cpp src/App.cpp \
src/ui/MainWindow.cpp src/ui/Editor.cpp \
src/storage/FileStorage.cpp memvort.res \
-lfltk -lole32 -luuid -lcomctl32 \
-o build/memvort.exe
So:
./build/memvort.exe