Solved

OpenGL in C++Builder

Posted on 1997-07-08
2
431 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
2 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now