Cuda by Example NOT DISPALYING any result

I am studying Cuda C on the Cuda by example book; at chapter 5 I started working on the example; however i found some troubles while running the program after compiling; here’s what i do:

nvcc -o prova -lGL -lGLU -lX11 -lXi -lXmu -lglut -lGLEW

then i run the program:


However instead of getting an image, i get a bitmap window totally black!!!

This issue actually happens with the majority of the examples given by the book and i was wandering if anyone of you has ever found this problem and if so how you solved it.