I have a working cpp file, lets just say it performs a+b, the filename is abc.cpp. I want to call up that file, function, in another file without having to rewrite the code and simply call up the function in another cpp file, xyz.cpp and simply map my variables over to the abc.cpp file.
I'm from hardware end of town, and what I woudl do is create a package and call up the package and simply instantiate the package name and perform a port map.
How do I perform somethign similar in c++?
Thanks