Sorry for the vague answer, but this would depend on your sample.... are you talking about a film, a powder, nanoparticle? There are different methods depending on what you are trying to attach to the glassy carbon surface...
You can possibly try something similar to what people do for testing catalysts for fuels cells and prepare an "ink". You would do that by suspending the powder in water or ethanol (which ever works best for your sample) and adding a bit of Nafion or PTFE dispersion (or a similar compound to act as binder); you might need to sonicate or agitate to get a good dispersion. You would then drop-cast some of the suspension onto the glassy carbon surface and let it dry before using it. A hair dryer or air (or nitrogen or argon) flow can help speed up the drying process... this is probably not needed if you use ethanol, but with water it can take some time.
If your samples are powdery, you may use the so called cavity or trench electrode which does not need any glue or binder. [cf. (1) J. Electroanal. Chem., 627 (2009) 28. (2) Electrochim. Acta, 55 (2010) 7447.] There is an issue of knowing how much powder is in the cavity. Weighing is not always straightforward, but you will surely be able to qualitatively understand the electrochemistry.
I think that both answers are good. You can also try a classic "carbon paste electrode" dopped with your powder. It will an easy way to ensure the contact with your sample.