How to hide a C++ function definition before releasing source code

I am building a Windows (Visual Studio, C++ based) console application and would like to release the source code for it. However, I do not want the definition of a particular function be visible to it. Is there a way to pre-compile (just the file containing the definition) it so that no one can view it, but the rest of the source is visible and can be built/ran using the ‘pre-compiled’ function definition.

Source: c++

Leave a Reply