01 - Cpp2 and cppfront - Beginners Guide to SDL2 in Cpp2 / cppfront

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • Setting up cppfront and compiling a Cpp2 source file.
    An in-depth guide to getting started with SDL2 in Cpp2 C++ Syntax 2
    This is SDL2 with Herb Sutter's C++ Syntax 2 or Cpp2 using cppfront cross compiler.
    github.com/Pro...
    @ProgrammingRainbow
    cppfront github page: github.com/hsu...
    cppfront documentation: hsutter.github...
    3rd Party cppfront documentation: github.com/ntr...
    CppCon 2022 cppfront presentation: • Can C++ be 10x Simpler...
    CppNow 2023 cppfront presentation: • Keynote: The Evolution...

КОМЕНТАРІ • 8

  • @dino_source
    @dino_source 8 днів тому +1

    Great topic to dig into! Thanks for this series!
    Btw, how did you achieve the cpp2 syntax highlighting? I'm trying it in VS Code with MS C++ extensions, but there is no cpp2 syntax highlighting (or I probably miss something).

    • @ProgrammingRainbow
      @ProgrammingRainbow  8 днів тому +1

      @dino_source there is an official vs code addon for cppfront, the one herb mentioned. That's why I was in vs codium for this one instead of neovim.

    • @ProgrammingRainbow
      @ProgrammingRainbow  8 днів тому +1

      @@dino_source marketplace.visualstudio.com/items?itemName=elazarcoh.cpp2-syntax

    • @dino_source
      @dino_source 8 днів тому

      @@ProgrammingRainbow yeah, thanks so much! I didn't manage to find it in VS Code Extensions Marketplace (inside VS Code), so just downloaded and installed it manually using the following command:
      code --install-extension ~/Downloads/elazarcoh.cpp2-syntax-0.0.5.vsix

  • @toyosiadekanmbi97
    @toyosiadekanmbi97 6 місяців тому +1

    Awesome video, keep up the good work!

  • @topsteplocal
    @topsteplocal 3 місяці тому

    Did you try adding a destructor, to see if that fixes the move in place of inout bug?

    • @ProgrammingRainbow
      @ProgrammingRainbow  3 місяці тому +1

      there was some talk about it in this video. I haven't been back with c++2 in a little while. But i plan to come back and build some games. But unless they implement modules that can handle c from sdl2 it will have to be a single file program. ua-cam.com/video/xnxq6TilDYg/v-deo.html