only link if compilation is successful