Method 2: 4-Aminobenzamide 1 mmol (136.15 mg) was dissolved in anisole (10 ml) in a 100 ml round-bottom flask fitted with a Dean-Stark setup. 1 mmol of 3,5-dichloro­salicylaldehyde (191.01 mg) was added to the solution. The reaction mixture turns to a light yellow color (after 10 min) and it was refluxed for 4 h. The solution was concentrated by removing the solvent and then washed with n-hexane 3–4 times to remove unwanted by-products. Red color crystals were obtained in 80% yield. We followed the same procedure for the synthesis of compound B and compound C and confirmed their structures by 1H-NMR and single-crystal X-ray diffraction.