港股即時

Economic Calendar

Monday, January 31, 2022

C++ for windows 10/11

  1. Download msys64 from mingw-w64.org
  2. install msys2 with installer(msys2-x86-xxxxx.exe)
  3. open msys2, type  below and let all these install/update within the msys2 terminal
    1. "pacman -Syu" 
    2. "pacman -Su"
  4. Open mingw64, type below and let all these install/update within the mingw64 terminal
    1. "pacman -Ss gcc" for C compiler
    2. "pacman -S mingw-w64-x86_64-gcc" for library update
    3. check with "gcc --version" & "g++ --version" to check whether everything install well
    4. "pacman -Ss gdb" for debugger
    5. "pacmain -S mingw-w64-x86_64-gdb" for debugger library update
    6. "gdb --version" to check everything install well 
  5. Go system environment and set Drive:\msys64\mingw64\bin as Path


Reference
Common Math functions

ASCII Table