fatal error: gl\glew.h: No such file or directory

Asked by jonathan chetwynd on 2014-08-19

apologies, I cannot seem to link glew, though gl glut etc seem fine...

trying to build single short file openGL:

$ gcc -o openGL openGL.c -lGLEW -lGL
openGL.c:6:21: fatal error: gl\glew.h: No such file or directory
 #include <gl\glew.h>
                     ^
compilation terminated.

file openGL includes:

#include <gl\glew.h>

$ ls /usr/include/GL
... glew.h ....

$ apt-cache search glew
libglew-dbg - OpenGL Extension Wrangler (debugging symbols)
libglew-dev - OpenGL Extension Wrangler - development environment
libglew1.10 - OpenGL Extension Wrangler - runtime environment
libglewmx-dbg - OpenGL Extension Wrangler MX (debugging symbols)
libglewmx-dev - OpenGL Extension Wrangler MX - development environment
libglewmx1.10 - OpenGL Extension Wrangler (Multiple Rendering Contexts)
glew-utils - OpenGL Extension Wrangler - utilities

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu glew Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
jonathan chetwynd (peepo-com) said :
#1

is there a conflict?

$ sudo apt-get install libglu-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libglu1-mesa-dev' instead of 'libglu-dev'
libglu1-mesa-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Revision history for this message
jonathan chetwynd (peepo-com) said :
#2

oops, sorry conflict above not relevant tx

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4
Revision history for this message
jonathan chetwynd (peepo-com) said :
#5

neither of the above responses are relevant

as per my original issue:

$ ls /usr/include/GL
... glew.h ....

had seen them already...

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Ubuntu as all Linux variants is case sensitive, so capitals and small letters are NOT assumed to be the same.

From your output:

#include <gl\glew.h>
$ ls /usr/include/GL
... glew.h ....

So I assume you have to change your source code into

#include <GL\glew.h>

Can you help with this problem?

Provide an answer of your own, or ask jonathan chetwynd for more information if necessary.

To post a message you must log in.