I need to prevent C++ static libraries from linking past the expiration date of a software evaluation period. How can I do that?
This should work with the most recent versions of the Visual C++ compiler (2012, 2010, ideally 2008). Support for more compilers would be a plus (Intel, gcc, game consoles compilers). Being able to pop a compiler warning a few days before the expiration date would also be a nice feature.
The linker has no support for performing this sort of check. You will need to come up with a better solution for dealing with the “evaluation period” expiring.