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

sb6code/include/GL/glxext.h:683:67: error: unknown type name ‘GLXContextID’ #5

Open
rveens opened this issue Dec 13, 2013 · 0 comments

Comments

@rveens
Copy link

rveens commented Dec 13, 2013

Compile error on Ubuntu 13.10 Linux amd64:

rick@rick-W650SR:~/Documenten/sb6code$ make
[ 1%] Building C object CMakeFiles/sb6.dir/src/sb6/gl3w.c.o
In file included from /usr/include/GL/glx.h:332:0,
from /home/rick/Documenten/sb6code/src/sb6/gl3w.c:62:
/home/rick/Documenten/sb6code/include/GL/glxext.h:682:24: error: expected declaration specifiers or ‘...’ before ‘’ token
typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
^
/home/rick/Documenten/sb6code/include/GL/glxext.h:683:67: error: unknown type name ‘GLXContextID’
typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
^
make[2]: *
* [CMakeFiles/sb6.dir/src/sb6/gl3w.c.o] Fout 1
make[1]: *** [CMakeFiles/sb6.dir/all] Fout 2
make: *** [all] Fout 2

I searched on the internet for this and i found out that i needed to add this line before line 683 in file sb6code/include/GL/glxext.h:

typedef XID GLXContextID;

After that it compiles fine.

This error happened after some update on Ubuntu. It compiled fine last week. I just wanted to notify you on this.

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