gcc -g3 -Iinclude -fPIC -c test2.c -o test2.o gcc -shared test2.o -o test2.so # # Compiling from .so causes bug, compiling from .o does not # gcc -g3 -Iinclude linux/playwav.c ./test2.so -lasound -o playwav #gcc -g3 -Iinclude linux/playwav.c ./test2.o -lasound -o playwav