A function call is not a definition, and one does usually not just define objects "outside main", but rather in classes with an appropriate area of responsibility.
Seriously, read a C++ book. Your terminology is so wrong that I have no idea what you're actually asking, let alone how to fill the knowledge gaps in a few sentences.