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 ripple.cu example; however i found some troubles while running the program after compiling; here’s what i do:

nvcc ripple.cu -o prova -lGL -lGLU -lX11 -lXi -lXmu -lglut -lGLEW

then i run the program:

./a.out

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.

./a.out is not the right way to run the program if you specify -o prova on the nvcc compile command line. Are you also biocoder ?