Solved

OpenGL in C++Builder

Posted on 1997-07-08
2
437 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
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel/Word Add-in in what language? 5 118
getting a fire fox page (view page source ) in c++ 6 42
Unresolved External Symbols 3 81
C++ mouse_event mouse look 7 83
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 video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

770 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