Macromolecular compounds obtained by reactions forming an ether link in the main chain of the macromolecule