Getting C++ Hello World working on Windows (a comedy & tragedy)

(sdegutis.github.io)

5 points | by 90s_dev 13 hours ago ago

5 comments

  • proc0 12 hours ago ago

    This is so true. I have MinGW, WSL, MSYS, Clang, VSCode, and VS. I have to juggle between them. I also hate VS, it does way too much for you and you get a bunch of garbage IDE files. I imagine MS engineers in every meeting: "should we make this simple? Nah, let's just add several layers of unnecessary bullshit, yeah that sounds good."

    • fithisux 2 hours ago ago

      see above, no VS involved

      you can use Codelite, Ultimate++, or EclipseCDT

  • fithisux 2 hours ago ago

    I have 3 envs on my Windows work laptop

    1. PellesC => small C+win32 hobby

    2. Msys2+mingw64 => main env for rust too

    3. Clang-LLVM + Windows SDK + Cmake + jom (and Windows CRT from C3 install) => Works fine https://github.com/llvm/llvm-project/releases/download/llvmo...

    (I use 3 for D too)

    4. I would like to add to your guide compiling with OpenWatcom V2 (https://github.com/open-watcom/open-watcom-v2)

    5. Cygwin they have latest GCC 15 in testing

    6. Winlibs or equation.com mingw distros

  • 90s_dev 12 hours ago ago

    In other words I'm very lost and in over my head.

    • fithisux 2 hours ago ago

      see above.

      would you like a guide for windows with method 3?

      methods 2/4 should work out of the box

      still I recommend you to give a go to latest D (dmd or ldc2) with method 3

      (2 may work too)