Compound for use in the treatment or prophylaxis of pain, a compound represented by formula I: in which: the dashed line represents a single or double bond; and R5 and R5 'are independently -H, -OH or -OR6, where R6 is a linear or branched C1-C4 alkyl; X is -O-, -CH2O- -CH2CH2O-, -CH (CH3) CH2O- or -CH2CH (CH3) O-; Z is -CH2CH2O-, -CH (CH3) CH2O- or -CH2CH (CH3) O-; m is 1; and n is an integer from 1-50; or a pharmaceutically acceptable hydrate or salt thereofCompuesto para su uso en el tratamiento o la profilaxis del dolor, compuesto que se representa por la fórmula I: en la que: la línea discontinua representa un enlace sencillo o uno doble; y R5 y R5' son independientemente -H, -OH o -OR6, donde R6 es un alquilo C1-C4 lineal o ramificado; X es -O-, -CH2O- -CH2CH2O-, -CH(CH3)CH2O- o -CH2CH(CH3)O-; Z es -CH2CH2O-, -CH(CH3)CH2O- o -CH2CH(CH3)O-; m es 1; y n es un número entero de 1-50; o un hidrato o sal farmacéuticamente aceptable del mismo