Assume that I compile the code in C++11 (I'll use Lambdas) to ".o" or library ".a". And I have a program, where I will include previous library and header file, that I can't compile with C++11, but old one ( C++98 ). Will it compile and work fine?
It will work fine if:
If point 3 is your only issue, you may be able to get around it by compiling a dynamic library (depending on platform a .so, or a .dynlib, or a DLL as Adrian suggests) with all dependencies statically linked internally and not exported. It's a bit hairy though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With