I currently have a C ++ installation, for example,
class FlowController { public:
As you can see, I am using an instance of cntrl :: OneWayValve in my class. The Valve class is in another library that I link to at compile time. Cntrl :: OneWayValve has cntrl :: Value in its implementation, for example:
class OneWayValve { public:
And, as before, cntrl :: Valve is in a different library for reasons that you will have to ask about the previous developer.
Now that I am compiling my FlowController class, I need to link it to the OneWayValve library and the cntrl :: Valve library.
My question is: Can I only link to the cntrl :: OneWayValve library at compile time?
Forward declaration?
Static libraries (really don't want to do this)?
Another alternative?
Basically, I don't want to know that its use of cntrl :: Valve internally, its nothing from my business.
Note: apologies for the OS - this is Unix.
Cheers, Ben
source share