A compound which inhibits both of EGF receptor tyrosine kinase and HER2 tyrosine kinase is provided. A compound represented by the general formula (I): wherein R X is a group represented by the formula: wherein R 1 is a hydrogen atom, optionally substituted alkyl, etc.; Z is -O-, -N(R 10 )-, etc.; R 10 is a hydrogen atom, alkyl, etc.; R 2 is a hydrogen atom, optionally substituted alkyl, etc.; R 18 is a hydrogen atom, optionally substituted alkyl, etc.; R 19 is optionally substituted alkyl, etc.; W 1 is an optionally substituted non-aromatic nitrogen-containing group; R 17 is a hydrogen atom, optionally substituted alkyl, etc.; R 3 and R 4 are independently a hydrogen atom, optionally substituted alkyl, etc.; X is -O-, -S-, or -N(R 12 )-, etc.; R 12 is a hydrogen atom, alkyl, etc.; and A is phenyl optionally having a substituent, etc., its pharmaceutically acceptable salt, or a solvate thereof.本發明提供可抑制EGF受體酪胺酸激活酶及HER2酪胺酸激活酶二者之化合物。;係為式(I):;(I);〔式中,RX為如下式:; , , ,或;(式中,R1為氫、可被取代之烷基等;Z為-O-、-N(R10)-等;R10為氫、烷基等;R2為氫、可被取代之烷基等;R18為氫、可被取代之烷基等;R19為可被取代之烷基等;W1為可被取代之非芳香族含氮雜環基;R17為氫、可被取代之烷基等)之基;R3及R4各為氫、可被取代之烷基、等;X為-O-、-S-、或-N(R12)-等;R12為氫、烷基等;及A為可有取代基之苯基等)之基〕之化合物或其製藥容許鹽或其溶劑合物。