As far, as I know, library “glut.h” isn’t working on C++ Builder because it is calling “Unresolved External” error on each function from this library (I have a “glut32.lib” on system folder).
But can I link up a “glaux.h” library? I have it, but I don’t have a “glaux.lib”. And where can I find a source code of Glaux module?
I need it, because I think, that working with Glaux module can be more simple. Using glu.h, to draw a sphere, we need this code:
So, I think now, that only, that I can do, is to get somewhere a source code for GLUT or GLAUX…
P.S. V-man: Yes, gluSphere is a part of GLU, but I write:
It is strange, some borland compiler users seem to have succeed in using glut in C++ builder. did you follow this tutorial or this one (looks nicer ).
I have found many articles about “how to integrate glut in C++ builder?” typing “glut+borland” in google.
I’m working with C++ Builder and Glaux library works fine with Borland!
I solved the unresolved external error by adding the glaux.lib file to the project (Project->Add …)
You’re using lib file built with MS VC or smth like this…Your options:
Convert it via cofftoomf
or
Download from internet BB demos which include compatible Glaux.lib - there are plenty of them …
(If you have public ftp I can upload you mine)
P.S. Anyway Glaux is deprecated and used mostly for loading bitmaps,so I think it’s better to look for other options;here in forum GLFW and SDL are recommended,but I guess they are problematic for Borland Builder.I used Glaux few years ago when I did some project for university,now I’m doing new project for work and I’m using FreeImage since it supports many image types and not only BMP.