To test the HandBrake dylib on MacOs X issue the following commands: =================================================================== cp ../libhb/libhb.dylib . gcc -I../libhb -L. -lhb test.c -o test -arch i386 -arch ppc install_name_tool -change /usr/local/lib/libhb.dylib @executable_path/libhb.dylib test Validate that the test Binary is really using the shared library otool -L test ------------------------------------------------------------------------ To test the HandBrake .so on Linux issue the following commands: ================================================================ cp ../libhb/libhb.so . gcc -I../libhb -L. -lhb test.c -o test -lz -lpthread Validate that the test Binary is really using the shared library ldd test ------------------------------------------------------------------------ To test the HandBrake .dll on cygwin issue the following commands: ================================================================== cp ../libhb/libhb.dll . gcc -I../libhb -L. -lhb test.c -o test -lz -lpthread The resulting binary test should depend on the cygwin dll and the hb dll. I works like that but wasn't tested yet outside of cygwin. ------------------------------------------------------------------------