Classes not creating in godot from c++ files?

Godot Version

4.2

Question

I’ve recently decided to switch to c++ in godot from godot c#. I have one issue though. I’m on mac and my .dylib was created succesfully, however, I used the gdexample.h and .cpp files from the godot C++ example website, but it dosn’t create a class in godot.