Assuming you have the relevant header files, you'd include those as usual in your files, then link against the libraries. Generally speaking, the .so libraries have a "short" name, like libqt, or libgnome, for example. To link your code against libgnome, using gcc, you'd add the flag '-lgnome' to your compile command line.