I have worked in Spain and Sweden. My salary as developer has been in the range of €32K-€45K in the past 15 years in Spain. It has been around €65K in Sweden (similar to what now friends make in Spain). And it is below €100K as an architect.
The cost of living in Sweden is higher than in Spain. And Spanish salaries in IT has soared. So, economically, it was not worth moving. But, the experience of living abroad is worth the money.
It is difficult to compare with USA salaries as here there is more taxes but you get better services. For me the deal breaker is the equality. I know that people around me makes a living wage. But, I will not discard to move to any other country in the future for the experience as every country has its own charm.