GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - atuthala/learncpp

BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
ChatGPT_CPP_j28/20250430_CMake
ChatGPT_CPP_j28/20250430_CMake
 
 
ch07/7_10
ch07/7_10
 
 
ch08
ch08
 
 
ch09
ch09
 
 
ch10
ch10
 
 
ch11
ch11
 
 
ch12/ch12x_summary
ch12/ch12x_summary
 
 
ch13
ch13
 
 
ch14/ch14x_summary
ch14/ch14x_summary
 
 
ch15/ch15_summary
ch15/ch15_summary
 
 
ch16/ch16_summary
ch16/ch16_summary
 
 
ch17/ch17_summary
ch17/ch17_summary
 
 
ch18
ch18
 
 
ch19/ch19-02
ch19/ch19-02
 
 
ch21/ch21y_Project_Puzzle-Game
ch21/ch21y_Project_Puzzle-Game
 
 
learncppGeneral
learncppGeneral
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

www.learncpp.com

mingw installation on Linux

sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine64

The following NEW packages will be installed:

  binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64
  g++-mingw-w64-x86-64-posix g++-mingw-w64-x86-64-win32
  gcc-mingw-w64-base gcc-mingw-w64-x86-64
  gcc-mingw-w64-x86-64-posix gcc-mingw-w64-x86-64-posix-runtime
  gcc-mingw-w64-x86-64-win32 gcc-mingw-w64-x86-64-win32-runtime
  mingw-w64-common mingw-w64-x86-64-dev

Compile:

x86_64-w64-mingw32-gcc -g -o hello hello.c
x86_64-w64-mingw32-g++ -g -o ch17q2s2 main.cpp

update-alternatives: using /usr/bin/x86_64-w64-mingw32-gcc-posix to provide /usr/bin/x86_64-w64-mingw32-gcc (x86_64-w64-mingw32-gcc) in auto mode
update-alternatives: using /usr/bin/x86_64-w64-mingw32-gcc-win32 to provide /usr/bin/x86_64-w64-mingw32-gcc (x86_64-w64-mingw32-gcc) in auto mode
update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode

How to install mingw-w64-x86_64-gtk3 in Ubuntu 22.04?

  • cd ~/temp28/quasi-msys2/env/shell.sh
  • win-clang++ hello_world.cpp pkg-config --cflags --libs gtk4
sudo apt install make wget tar zstd gpg
git clone https://github.com/HolyBlackCat/quasi-msys2
cd quasi-msys2/
make install _gtk4   # equivalent to `make install mingw-w64-x86_64-gtk4`

I suggest using Clang, which can work with any MinGW flavor,

sudo apt install wine   # Optional.

# Install latest Clang
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh
rm llvm.sh

# Install more packages
make install _gcc _gdb    # We won't be using GCC, but we need libraries that come with it.

# Opens a new shell with the right environment variables configured.
env/shell.sh

Then, testing on Hello World from here:

# Notice `pkg-config` picking up the correct libraries.
win-clang++ hello_world.cpp `pkg-config --cflags --libs gtk4`
# This opens the app in Wine:
./a.exe

Для компиляции в режиме RELEASE

g++ -std=c++20 -O main.cpp

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.