Generally speaking declarions are put in a header file (.h extension) and are included in the main program and definition of classes with the directive #include which can take two forms:
First form is user defined classes/libraries:
#include "my_file.h"
#include "../include/my_file.h"
Second form is system defined classes/libraries:
#include <string>
#include <iostream>
To compile against them include the rules for the class in make file and link against them.
Your question was a litle unclear, but I hope I answered what you were looking for.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.