Using different method of linking c++11