Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build: Conflicting types for 'GLsizeiptr' #1

Open
fabiensanglard opened this issue Jan 30, 2014 · 0 comments
Open

Unable to build: Conflicting types for 'GLsizeiptr' #1

fabiensanglard opened this issue Jan 30, 2014 · 0 comments

Comments

@fabiensanglard
Copy link
Contributor

gcc -c -g -O0 -Wall -Icommon -o common/u2gl.o common/u2gl.c
In file included from /usr/include/GL/gl.h:2085:0,
from /usr/include/GL/glu.h:38,
from common/u2gl.c:4:
/usr/include/GL/glext.h:459:19: error: conflicting types for ‘GLsizeiptr’
typedef ptrdiff_t GLsizeiptr;
^
In file included from common/u2gl.c:3:0:
/usr/include/GLES2/gl2.h:39:26: note: previous declaration of ‘GLsizeiptr’ was here
typedef khronos_ssize_t GLsizeiptr;
^
In file included from /usr/include/GL/gl.h:2085:0,
from /usr/include/GL/glu.h:38,
from common/u2gl.c:4:
/usr/include/GL/glext.h:460:19: error: conflicting types for ‘GLintptr’
typedef ptrdiff_t GLintptr;
^
In file included from common/u2gl.c:3:0:
/usr/include/GLES2/gl2.h:38:26: note: previous declaration of ‘GLintptr’ was here
typedef khronos_intptr_t GLintptr;
^
make: *** [common/u2gl.o] Error 1

Removing glu include fixed the problem

cmatsuoka added a commit that referenced this issue Jan 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant