can we use a library built with a different flag say -std=c++17 with my program which is going to be built using -std=c++11 in these cases.
A) Same compiler used to build the library:
case 1: shared lib (.so)
case 2: static library (.a)
B) Different compiler:
case 1: shared lib (.so)
case 2: static library (.a)