I\'m creating shared library based on this code on Linux by running this command.
g++ -pthread -shared -o library.so library.o