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 RX is a group represented by the formula:wherein R1 is a hydrogen atom, optionally substituted alkyl, etc.; Z is —O—, —N(R10)—, etc.; R10 is a hydrogen atom, alkyl, etc.; R2 is a hydrogen atom, optionally substituted alkyl, etc.; R18 is a hydrogen atom, optionally substituted alkyl, etc.; R19 is optionally substituted alkyl, etc.; W1 is an optionally substituted non-aromatic nitrogen-containing group; R17 is a hydrogen atom, optionally substituted alkyl, etc.; R3 and R4 are independently a hydrogen atom, optionally substituted alkyl, etc.; X is —O—, —S—, or —N(R12)—, etc.; R12 is a hydrogen atom, alkyl, etc.; and A is phenyl optionally having a substituent, etc.,its pharmaceutically acceptable salt, or a solvate thereof.