Giant molecular complexes and OB associations. I. The Rosette molecular complex