Problem with the program that run remotely

Hi everyone

I read CUDA by example and I have problems with compilation programs that operate bitmaps. I compile programs via ssh on computer at my university. When I try to compile program that oparate bitmaps compiler returns errors:

/tmp/tmpxft_000006d3_00000000-13_julia_cpu.o: In function `CPUBitmap::display_and_exit(void (*)(void*))':

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap16display_and_exitEPFvPvE[CPUBitmap::display_and_exit(void (*)(void*))]+0x3c): undefined reference to `glutInit'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap16display_and_exitEPFvPvE[CPUBitmap::display_and_exit(void (*)(void*))]+0x48): undefined reference to `glutInitDisplayMode'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap16display_and_exitEPFvPvE[CPUBitmap::display_and_exit(void (*)(void*))]+0x60): undefined reference to `glutInitWindowSize'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap16display_and_exitEPFvPvE[CPUBitmap::display_and_exit(void (*)(void*))]+0x6c): undefined reference to `glutCreateWindow'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap16display_and_exitEPFvPvE[CPUBitmap::display_and_exit(void (*)(void*))]+0x78): undefined reference to `glutKeyboardFunc'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap16display_and_exitEPFvPvE[CPUBitmap::display_and_exit(void (*)(void*))]+0x84): undefined reference to `glutDisplayFunc'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap16display_and_exitEPFvPvE[CPUBitmap::display_and_exit(void (*)(void*))]+0x89): undefined reference to `glutMainLoop'

/tmp/tmpxft_000006d3_00000000-13_julia_cpu.o: In function `CPUBitmap::Draw()':

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap4DrawEv[CPUBitmap::Draw()]+0x34): undefined reference to `glClearColor'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap4DrawEv[CPUBitmap::Draw()]+0x40): undefined reference to `glClear'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap4DrawEv[CPUBitmap::Draw()]+0x71): undefined reference to `glDrawPixels'

tmpxft_000006d3_00000000-1_julia_cpu.cudafe1.cpp:(.text._ZN9CPUBitmap4DrawEv[CPUBitmap::Draw()]+0x76): undefined reference to `glFlush'

collect2: ld returned 1 exit status

What can I do with that?

Sorry for my english External Image

Can you run the simple code from the sdk called deviceQuery? Anyway the code form the book requires opengl libraries and glut stuff which are required for plotting.