> don't forget that libraries need to be named libMyLibName.so for the > linker to find them. (Note the "lib" in the beginning of the file name) I try to write a ruby extension. In ruby, excute "require 'Test'", 'Test.so' will be loaded and function 'Init_Test' will be called.