I am trying to combine two files foo.c and bar.c into a dynamically-linked library foobar.so. I am using the command:
foo.c
bar.c
foobar.so
gcc