Cadmium chloride is made by reacting cadmium oxide , cadmium , or cadmium carbonate with hydrochloric acid .
Hydrochloric acid may be used to make hydrated CdCl2 from the metal , or from cadmium oxide or cadmium carbonate .