linking with shared resources