#$%^&*AU2017279570B220181025.pdf#####T RK-INHIBIT ING COMPOUND ABSTRACT The present invention provides a drug containing a compound having Trk-inhibiting activity as an active ingredient in prophylaxis and/or therapy for Trk-related diseases such as pain, pruritus, lower urinary tract dysfunction, asthma, allergic rhinitis, inflammatory bowel disease or Chagas disease. A compound represented by the general formula (I): Aj A3 0 A, 0 ip (R2)q N N 5Y 6 N'JN CY 6 (143)r HH wherein all symbols represent the same meanings as described in the specification, a salt thereof, an N-oxide thereof, a solvate thereof or a prodrug thereof is useful as a drug component having Trk-inhibiting activity in prophylaxis and/or therapy of diseases such as pain, pruritus, lower urinary tract dysfunction, asthma, allergic rhinitis, inflammatory bowel disease or Chagas disease.