compile and link multiple objects