Download book code from here.

It's important to note, that the book does not ask you to write code on the target system itself, you need to use a Windows PC and an IDE.
I use Visual Studio 2022 Community Edition (it's free), info on how to set up your PC and connect to your target is given here. Conversion to a different IDE should be simple enough but try VS2022.

There are of course a couple of important support files/libs you will need. The project content files when downloaded, provide a setup.sh file which automatically goes to your Pi when you build, your 1st build will fail due to the lack of content but setup.sh will now be on your Pi, when run in your home/pi dir it will install all the systems needed. I know that some people are concerned about blindly downloading content, but the sh file is editable and you can check it's not installing anything naughty. (Its not!)

It will install Bullet Physics, GLM maths, Freetype text rendering, Sound systems, updates to openGLES2 and some error handling and a few other things. I may update the setup.sh file from time to time (for example for later versions of Ffreetype).

You only need to run setup.sh once while connected to the internet on your Pi. PC builds already come with all libs and features in place, though you might want to use updated versions if you are writing more complex content.