You can share your project with the orange SHARE button.
That way, we can give you better advice on what's going on with your project specifically.
In general, all the cpp files in your project are compiled and linked automatically by OnlineGDB.
If you do not have your project on OnlineGDB, only on your local PC, can you share the build outputs so we can look at the error messages?