How do I import a texture on a glutSolidCube for example???

I maybe wrong on this but I think the only
object that generates tex coords in the glut
and aux libraries is the teapot…

you may just want to write your own solidCube
function which generates its own tex coords
and call that instead