   Linker errors
  Hi guys, I'm pretty much as new as you can be at C++, and I'm trying to get through NeHe's OpenGL tutorials, but when I try to compile the stock code off the site (I'm using Dev-C++) it gets through the #include's just fine, and it does specify the opengl header files, but it trips over every single OpenGL thing in there. Here are just the first few things so you can get the idea without being innundated (it threw like 54 errors of the exact same thing, just with different things being referenced):Quote:../Documents and Settings/*****/Desktop/OGLSTUFF/Lesson10/Lesson10.o(.text+0x2a8):Lesson10.cpp: undefined reference to `auxDIBImageLoadA@4'../Documents and Settings/*****/Desktop/OGLSTUFF/Lesson10/Lesson10.o(.text+0x319):Lesson10.cpp: undefined reference to `glGenTextures@8'../Documents and Settings/*****/Desktop/OGLSTUFF/Lesson10/Lesson10.o(.text+0x331):Lesson10.cpp: undefined reference to `glBindTexture@8'so it does that about 50 times over a bunch of different things, and then the end, if you care to see it (remember, I totally don't know what I'm doing), looks like this:Quote:collect2: ld returned 1 exit statusmake.exe: *** [Project1.exe] Error 1Execution terminatedThanks for your help!   
  Are you linking opengl?  Looks like your trying to use the old glaux too, either find that and link that or download the new version of the code from nehe.  You may want to find a devpak for opengl so it links opengl for you.Hope that helps   ;  How would I link OpenGL?EDIT: I have all the necesary OpenGl header files included, and I DO have GLaux in my include directory. Is there something beyond simply including the header files involved in linking?   ;  add these three lines of code right below your #includes:#pragma comment(lib, "opengl32.lib")#pragma comment(lib, "glu32.lib")#pragma comment(lib, "glaux.lib")or add the libs to the project directory.   ;  I added that in, and it brings up the exact same errors.   ;  Hi mryd, have a look at the first question in this thread and that should sort out the gl* errors.  As to the aux* errors, see the answer to question two (the replacement code).The reason that the #pragma doesn't work is that it's for Microsoft compilers and Dev-C++ doesn't understand it.Hope that helps you!   