The present invention provides a therapeutic agent for Trk inhibitor-resistant cancer. A compound represented by general formula (I) (wherein each of the symbols has the same meaning as that described in the description), a salt, N-oxide or solvate of the compound or a prodrug of the compound or the salt, N-oxide or solvate is useful as an active ingredient of a therapeutic agent for Trk inhibitor-resistant cancer.La présente invention concerne un agent thérapeutique pour les cancers résistants aux inhibiteurs des Trk. Un composé représenté par la formule générale (I) (où chacun des symboles a la même signification que celle décrite dans la description), un sel, N-oxyde ou solvate du composé, ou un promédicament du composé ou du sel, N-oxyde ou solvate, est utilisable comme principe actif ou agent thérapeutique contre les cancers résistants aux inhibiteurs des Trk.本発明は、Trk阻害剤抵抗性の癌の治療剤を提供する。一般式(I) (式中、すべての記号は、明細書記載の記号と同じ意味を表す。)で示される化合物、その塩、そのN-オキシド体、その溶媒和物、またはそれらのプロドラッグは、Trk阻害剤抵抗性の癌の治療剤の有効成分として有用である。