As for memory_hook, I’m guessing you’re not linking in one of the Panda libraries (I think that memory_hook in particular is in libp3dtool).
If you’re new to C++ development, I would encourage you to get more familiar with programming with C++ and using other libraries to begin with, or that you try your hand at Python development first.