1 2 3 4 5
#!/bin/sh g++ -O2 -Wall -fPIC -c triangle.cpp g++ -shared -o triangle.so triangle.o g++ -o test main.cpp -ldl