Generally, such salts can be prepared by reacting the free acid or base forms of these compounds with the appropriate base or acid in water or in an organic solvent, or in a mixture of the two; generally, nonaqueous media such as ether, ethyl acetate, ethanol, isopropanol, or acetonitrile are used.Acid addition salts may be formed with a wide variety of acids, both inorganic and organic.