Homeless people, but multiple vacant houses
Solution 1:
Make sure they can afford the housing. Reduce the rent and increase the wages.
Solution 2:
Make sure that they also have jobs and a market (or plantation/fisher) to get food in the vicinity. Otherwise they'll create slums were they get those things.