#include <glut.h>                       //подключаем заголовочный файл glut.h
#pragma comment (lib, "glut32.lib")    // link with Win32 GLUT lib
namespace pyglut{
    class PythonGlut{
        public:
            PythonGlut();
            ~PythonGlut();
            // Инициализация GLUT и создание окна
            void PythonGlutInitDisplayMode(unsigned int mode);
    };
}#include "PythonGlut.hpp" //подключаем заголовочный файл PythonGlut.hpp
namespace pyglut{
    PythonGlut::PythonGlut() { }
    PythonGlut::~PythonGlut() { }
    // Инициализация GLUT и создание окна
    void PythonGlut::PythonGlutInitDisplayMode(unsigned int mode){
        glutInitDisplayMode(mode);
    }
}#include "PythonGlut.hpp"
using namespace pyglut;
int main(int argc, char **argv) {
    //создаем объект типа PythonGlut
    PythonGlut pythonglut;
	// инициализация
    pythonglut.PythonGlutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
	return 1;
}C:\PyScripterProjects\PyGlut>cl glut_window.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.
glut_window.cpp
Microsoft (R) Incremental Linker Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.
/out:glut_window.exe
glut_window.obj
glut_window.obj : error LNK2019: unresolved external symbol "public: __thiscall
pyglut::PythonGlut::PythonGlut(void)" (??0PythonGlut@pyglut@@QAE@XZ) referenced
in function _main
glut_window.obj : error LNK2019: unresolved external symbol "public: __thiscall
pyglut::PythonGlut::~PythonGlut(void)" (??1PythonGlut@pyglut@@QAE@XZ) referenced
 in function _main
glut_window.obj : error LNK2019: unresolved external symbol "public: void __this
call pyglut::PythonGlut::PythonGlutInitDisplayMode(unsigned int)" (?PythonGlutIn
itDisplayMode@PythonGlut@pyglut@@QAEXI@Z) referenced in function _main
glut_window.exe : fatal error LNK1120: 3 unresolved externals
C:\PyScripterProjects\PyGlut>