What ways are there to protect licensing enforcement mechanisms in C/C++?
I know of:
- Using macros (but that make the code difficult to maintain)
- Linking statically
- Obfuscating symbol names
Other methods I am not sure about:
- Using C++ templates
- Using inline functions
It’s usually a good idea to keep your code as clean as possible and rely on a third party tool to protect your code. google for ‘c++ obfuscator’ to find such tools.