When you made the library; e.g., with
make, did you also (as super user) execute
make install? Did the library get install in
/usr/local/lib? Do you have a file,
ld.so.conf somewhere in your
/etc directory (or a sub-directory of
/etc? If so, is there a line in that file like this:
Code:
/usr/local/lib
there may be other lines, too
If so, when you compile a C program, simply...
Code:
cc -o prog prog.c -lunrar
If you did not install the library somewhere, then you would
Code:
cc -o prog prog.c -LPATH_TO_DIRECTORY -lunrar
where PATH_TO_DIRECTORY is the path from where you are to the directory that contains the file
libunrar.so.
The above is purposely simplified; it's probable that you'll need to include a header file, possibly
ubnrar.h, that contains the definitions of the various functions contained in that library -- wouldn't be a bad idea to read the documentation that came with the
unrarsrc package (README, manual pages, etc.).
Hope this helps some.