   2 Compile Problems Dev-C++
  I have began some OpenGL using C in Dev-C++ and I have been getting 2 compiler errors.The first is that it cant find the header from the line#include <gl\glaux.h>, but gl.h and glu.h are fine.What is the differece between these headers? And why have I not got the glaux.h?Secondly I get the error "Initializer element not constant (near initialization for ''pdf.cColorBits''"   pdf.cColorBits does not even exist in my file, so I have no idea what this if from.   Can someone tell me what this error means?If this isnt the best place to ask such questions, like if there is a better suited forum, just tell me. 
glaux.h contains the auxiliary libraries, such as texture loading functions. You don''t absolutely need it, but it can make your life easier when starting out. For some reason, Dev-C++ 5 doesn''t seem to have glaux.h in the default installation, so you''ll have to try to find it elsewhere. However, if you''re not using any functions from it, you can safely remove the #include line (most of the functions from glaux.h are prefixed with ''aux'', for example, auxDIBImageLoad).As for your other error, it would be helpful if you could post some code... ;  OK, I couldn''t find glaux.h easily, so I put my version from VC++ 6 here. Hope that works for you. ;  Thanks! I will test it out tomorrow.   Its been a late night of codeing and I am going to bed.I will look over my code again tomorrow and see if I can find the error, if not, then i will post the offending function ;  "For some reason, Dev-C++ 5 doesn''t seem to have glaux.h in the default installation, so you''ll have to try to find it elsewhere."GLAUX.H is included in Dev-C++ 4.01, if you upgrade to version 5, don''t forget to save you''re glaux header! If you started with Dev-C++ 5 though, you can download the old version of Dev-C++ and get the file from it. ;  I got the one from VC++ that was posted. Shouldnt it be the same? The headers should be standard across all platforms I would have thought?I was under the impression that VC++ and dev-C++ were basically different environments for the same thing?  Like a C program written in VC++ is the same as one written in dev-C++ isnt it?I actually write my script in vi then compile through dev-C++, which is running at the same time cause i am so used to vi now.   I just save the script in vi, dev-c++ says the script has been changed, I reload it, then compile.   THis should not really cause any problems should it?Oh and one last thing, the linker in dev-C++. What is linking and .lib files for? I thought linking was putting like #include windows.h, etc at the top of your script, so what are these .lib and .a files for?Thanks ;  GLaux is not part of OpenGL. GLaux is broken, deprecated, and non-portable. Please avoid it if at all possible (skip to tutorial twenty-something that covers hand loading textures).Including headers (commonly with an extension of .h, .hh, .hpp, or .hxx) has nothing to do with linking. Linking takes the addresses of functions and calls to those functions (among other things) and connections them all together ("linking"). A library must be linked like any other object containing symbols. In Windows (unlike many operating systems), the "instructions on how to link" (.lib and some .a files; each are a different type of instructions) are seperate from the actual library (.dll), you link to the former to access the symbols of the latter.   ;  Sorry about the trouble, but i have just dont tutorial 6 from NeHe and I have decided to use GLaux just for now. I obtained the header from someone in this thread (sbennet, thanks) and my code compiles fine, but when I try and run the application i get a GLAUX.dll not found error. What should I do about this? Does anyone here have that .dll?  ;  glaux is very undesirable. really try your best to find alternate resources that don''t use glaux. ;  That''s odd: I don''t have any glaux.dll on my system. I can use the glaux library with no problems in VC++, yet I get that missing dll error with Dev-C++. Dev-C++ can''t use libs from VC++, so I''m afraid that all I can do is direct you here, here, or here for alternative ways to load textures (all from NeHe). Sorry about that. 