View Full Version : HELP!!! trouble with including .h files.

02-29-2016, 05:03 AM

I am completely new to opengl (and programming in general really...) so I really have no idea what I am doing.

Anyway, I've included all the .h files for opengl in the usr/include/GL directory but when I try to compile the 'triangles' example program as seen in the red book, it gives me the following error: LoadShaders.h: No such file or directory.

I am not sure why this is happening because it does not seem to be happening with other file that I have included in the same directory.

So... what's going on?

thanks in advance

02-29-2016, 11:01 AM
hi there,

without any idea of opengl it will be very hard !
and a include problem is more a c/c++ issue...
anyway ... for people like you i did my opengl beginner podcast... a earsy way to get into it and i also explain how to set up the basics...
maybe it gets you started:


03-01-2016, 03:23 PM
LoadShaders.h is a helper function written by the authors of the book. You can download it, along with the rest of the samples, from their website at opengl-redbook.com