Glut: Unresolved external CUDA by Example


Iam trying to compile a example from “CUDA by Example”.

Iam trying to compile it via:

nvcc -o julia_set

Then i resolved that error:

I allready installed glut. How can i fix that problem?

You’re missing some library file. Are there any library files that come with the book? Or maybe you need to ensure that the glut library in your system is linked.

I didn’t find any libary with the book. How i can link that glut stuff?

One way is to look in the directories (bin, lib) and copypaste both the glut32.dll , glut32.lib into the chapter04 directory. This inelegant method works - I know!

Perhaps someone can tell me the proper way of doing this