An object of the present invention is to provide a drug containing a compound having Trk-inhibiting activity as an active ingredient in prophylaxis and/or therapy of 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) : (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.