Macromolecular compounds obtained by reactions forming a carboxylic amide link in the main chain of the macromolecule