Turkish President Abdullah Gul is in Iran on a four-day visit, hoping to build ties between the two neighbours.