Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Cpp Wilderness

I am  todays year old that I learned in cpp land, there are like 5 extensions to have your cpp code be analyzed like intellisense so you can have neat and fancy features like jump to definitions find references all that jazz BUT they are actively fighting each other. Most of you who are using vscode for writing c++ code will probably have microsoft's C/C++ extension installed because... it's the first thing vscode recommends and being actively endorsed when you have some c++ files open. But then there's clangd with its extension vscode-clangd, which is faster and superior to that ms-owned extension. But you can't have both, because clangd will behave awkwardly if you have ms c/cpp enabled. But if ms c/cpp is disabled, you'll lost debugging features, and to enable that you need other extension like CodeLLDB. but sometimes codelldb will go bamboozled if ms c/cpp is enabled and also wants to debug your code, but codelldb and clangd will not function if there's no llvm toolchain installed, as it's the case for windows. And then there's Swift, which uses llvm, which is available for windows, and will make your windows machine have llvm toolchains somewhere in your filesystem. and there's also vscode-swift, which will use sourcekit-lsp, which is a lang server not only for swift but also c, c++, and objective-c, and for doing that it uses clangd, which then will fight with ms c/c++ extension AND the vscode-clangd extension . holy. cpp why cant you haves some sane tooling.

And don't get me started with buildsystem.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.