The invention concerns a method for preparing a compound of formula (I), wherein: R3 and R1 represent in particular H and n is greater than 4, said preparation method including performing a Wittig-Horner reaction with a phosphonate on a lactol, so as to obtain a hydroxyester and, optionally a saponification reaction of said hydroxyester.