C++学习(二九九)undefined reference to `glActiveShaderProgramEXT‘
Posted hankern
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++学习(二九九)undefined reference to `glActiveShaderProgramEXT‘相关的知识,希望对你有一定的参考价值。
缺少动态库,添加D:\\android-ndk-r19c\\toolchains\\llvm\\prebuilt\\windows-x86_64\\sysroot\\usr\\lib\\aarch64-linux-android\\28\\libGLESv3.so
According to the Khronos OpenGL ES Registry, the extension header for GLES 3.0 is actually <GLES2/gl2ext.h>. gl3ext.h should be empty and provided only for legacy compatibility. Thus, if you want to include GLES 3.0 headers, you should do:
#include <GLES3/gl3.h>
#include <GLES2/gl2ext.h>
gl3ext.h的内容,为空
#ifndef __gl3ext_h_
#define __gl3ext_h_
/* $Revision: 17809 $ on $Date:: 2012-05-14 08:03:36 -0700 #$ */
/*
* This document is licensed under the SGI Free Software B License Version
* 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
*/
/* OpenGL ES 3 Extensions
*
* After an OES extension's interactions with OpenGl ES 3.0 have been documented,
* its tokens and function definitions should be added to this file in a manner
* that does not conflict with gl2ext.h or gl3.h.
*
* Tokens and function definitions for extensions that have become standard
* features in OpenGL ES 3.0 will not be added to this file.
*
* Applications using OpenGL-ES-2-only extensions should include gl2ext.h
*/
#endif /* __gl3ext_h_ */
以上是关于C++学习(二九九)undefined reference to `glActiveShaderProgramEXT‘的主要内容,如果未能解决你的问题,请参考以下文章
C++学习(二七三)undefined reference to `stderr‘
C++学习(三八一)undefined reference to `libiconv‘