try compile dynamic link library in gcc.