A square is a slang word for cigarette. The box that cigarettes come in ressembles a square. Hence the name, "square" for a cigarette. Smoking a square is the act of satisfying your craving for nicotine by smoking a cigarette.
"Let's go smoke a square."
"Hey buddy, do you got an extra square?"