build link.cpp