Q: How to use method in shared library I have managed to configure, compile, and install some C source code into a Linux machine.
Now I know that my library (say mylib.so) is available at /usr/local/bin
I would like to write my C program with a main in it, that will access one of the methods in mylib.so that returns a struct defined in there.
Can somebody help me with this?

A: Something like this should give you the result:
gcc -o prog prog.o -L/usr/local/bin -mylib

