What you are seeing are linker errors. You aren't using Qt at all in the code you posted (and I wonder why you are posting this to a Qt forum...), so your professor is off the mark. Were your GLUT libraries built using the same compiler as your project uses? You can't mix and match Visual C++ and gcc binaries for example - they're incompatible. If you simply downloaded pre-built GLUT from somewhere, be sure the version you use matches your build tool-chain. Are your GLUT libraries also built using the same compilation options (32 vs 64 bit, debug vs release, for instance)? You can't mix and match either of these pairs, especially with MSVC compilers.
I've used CMake, but I'm not intimately familiar with it. Assuming you are mixing oranges with oranges on your binaries, shouldn't you have declarations in your CMakeLists.txt file that provide the paths to the .lib files you want to link in, just as you have provided paths to the include files?
Bookmarks