add sample for link static lib