A desirable route to heterodimers of 1,4-dihalobenzenes and anthracene and their photoproperties and thermal properties