matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
492 stars 72 forks source link

Compile Errors in VS2017 #149

Open baiqi opened 5 years ago

baiqi commented 5 years ago

1>J:\oglplus-0.74.0\include\oglplus/glfunc.hpp(34): error C2165: “左侧修饰符”: 不能修改指向数据的指针 1>program.cpp 1>J:\oglplus-0.74.0\include\oglplus/glfunc.hpp(34): error C2165: “左侧修饰符”: 不能修改指向数据的指针 1>prog_var.cpp 1>J:\oglplus-0.74.0\include\oglplus/glfunc.hpp(34): error C2165: “左侧修饰符”: 不能修改指向数据的指针 1>extension.cpp 1>J:\oglplus-0.74.0\include\oglplus/glfunc.hpp(34): error C2165: “左侧修饰符”: 不能修改指向数据的指针 1>shapes_utils.cpp 1>J:\oglplus-0.74.0\include\oglplus/glfunc.hpp(34): error C2165: “左侧修饰符”: 不能修改指向数据的指针 1>J:\oglplus-0.74.0\include\oglplus/context/numeric_queries.hpp(123): error C2065: “GL_CONTEXT_RELEASE_BEHAVIOR”: 未声明的标识符 1>shapes_blender.cpp 1>J:\oglplus-0.74.0\include\oglplus/imports/blend_file/struct_block_data.hpp(152): error C2833: “operator decltype”不是可识别的运算符或类型 1>J:\oglplus-0.74.0\include\oglplus/imports/blend_file/struct_block_data.hpp(155): note: 参见对正在编译的 类 模板 实例化 "oglplus::imports::BlendFileFlatStructTypedFieldData" 的引用 1>J:\oglplus-0.74.0\include\oglplus/imports/blend_file/struct_block_data.hpp(152): error C2059: 语法错误:“newline” 1>J:\oglplus-0.74.0\include\oglplus/imports/blend_file/struct_block_data.hpp(152): error C2334: “{”的前面有意外标记;跳过明显的函数体 1>J:\oglplus-0.74.0\implement\oglplus/shapes/blender_mesh.ipp(374): warning C4267: “+=”: 从“size_t”转换到“GLuint”,可能丢失数据

baiqi commented 5 years ago

1>J:\oglplus-0.74.0\include\oglplus/shapes/blender_mesh.hpp(120): error C2679: 二进制“[”: 没有找到接受“oglplus::imports::BlendFileFlatStructTypedFieldData<void >”类型的右操作数的运算符(或没有可接受的转换) 1>J:\oglplus-0.74.0\include\oglplus/imports/blend_file.hpp(114): note: 可能是“oglplus::imports::BlendFileFlatStructBlockData oglplus::imports::BlendFile::operator ” 1>J:\oglplus-0.74.0\include\oglplus/shapes/blender_mesh.hpp(120): note: 尝试匹配参数列表“(oglplus::imports::BlendFile, oglplus::imports::BlendFileFlatStructTypedFieldData<void >)”时 1>J:\oglplus-0.74.0\implement\oglplus/shapes/blender_mesh.ipp(374): warning C4267: “+=”: 从“size_t”转换到“GLuint”,可能丢失数据