Solved

OpenGL in C++Builder

Posted on 1997-07-08
2
443 Views
Last Modified: 2008-03-06
Hi there!

I'm still pretty new at doing RAD with C++ Builder.  Does anyone know how to incorporate Opengl's auxiliary library into C++ Builder??  I need it to call a window to do 3D rendering.  Usually, this is done by calling auxInitWindow, auxInitPosition, blah, blah.

The gl.h, glu.h and glaux.h header files are available in C++Builder, but apparently, the opengl32.lib file included in the package does not define the functions prototyped in glaux.h... hence, a linker error always occurs when any of the auxiliary functions are called.

Help anyone??
Thanks!!

David
0
Comment
Question by:davidau
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1164570
I recall there was another library associated with OpenGL called glaux.lib. See if that's there and make sure you link in that library as well.
0
 
LVL 9

Accepted Solution

by:
Pacman earned 100 total points
ID: 1164571
That's true. Alle the aux functions are stored in a static library called glaux.lib.
Because the aux-library is a platform independent extension of OpenGL an not a part of it, you must get the library from your compiler vendor.
Unfortunately Borland doesn't ship this library with their compilers ...
I had the same problem and finally got the library from the CD of a book. The book is called OpenGL Superbible, it's US $59.99 and from Waite Group Press. Maybe you can find it in a library ...

regards
Pacman
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question