To trade resources with an ally, you'll need a trading post, as well as the lore Coinage that will open trade routes where you can excange food / wood etc for gold.