I am having problems setting up Borland c++ to compile Opengl codes correctly. Here is what I did. I put the glut header files in the "/include/gl/ " directory of borland and put the lib files in the “/lib/gl/” directory. I do not know where to put the dll files included in glut3.6 so i just left them out. when i open new file then open NeHes lesson 1 for borland c++, it will compile sucessfully, but when I try to run it, it gave me errors about internal referance?? any help is greatly appreciated, thank you.
I don’t know how I got that to work, but I did with Borland C++ Builder 5.02. My problem is with NeHe’s lessons 6, 7, and 8, concerning textures, where the compiler does not recognize the glgentextures() and glbindtexture() functions within the header files…probably because there aren’t any? If I compile it using Microsoft’s evil Visual C++ 6.0 tool, I don’t get this problem. Any suggestions?
As of AndyAndy’s problem, don’t use the downloads that are posted on NeHe’s site; I have problems using them with Borland 5.02. I’d just copy and paste the code from the HTML lesson directly into the Borland text edit, and then I’d be fine. Hope this helps.
I just copied all of the lines of code from NeHe’s page and now I have a tingling pain in my right hand… +_+
It compiled ok on Borland, but when I try to run the program it gave me an error: " unresolved external error ‘_maim’ referenced from c:\bc5\lib\cox32.obj" what does this mean
I use borland but only from the command line. I found it the best solution: a powerful editor and the command line.
No VCL, no Forms.
In this way you can use directly the SAME code of nehe’s tutorials.
The problem with glGenTextures is because the headers are old. I downloaded somewhere newer headers (gl.h, glu.h). Maybe I also imported libs from dlls with implib but I don’t remember.
I use this .bat bile:
@echo off
doskey
set PATH=c:\programmi\cbuilder\bin
c:\win98\system\command