modify -libcheck.a to -lcheck