Separation of solid compounds from these gases; further treatment of recovered products