GDNative Project crashes after registering a new class.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Karim

I started using GDNative C++ on Linux (Ubuntu). First i created a class and registered it in a native library.cpp file just like the tutorial and everything was fine and working but when i added a second class and registered it the same way as the first class and in the same library Godot threw an error “Can’t open dynamic library…” so i tried creating a new library for that class but it didn’t work because it threw an error that a library is already defined. So i removed the second class to fix the problem but the project wasn’t running the first class which was working at first so the project basically crashed so i really need help. like how do i register multiple classes ?