Using a plugin in C++ code

Are you saying there isnt a way to implement this in C++ without forcing a hard dependency?