Advertisement

Problem setting up OpenGL in Borland C++

Started by February 11, 2003 07:04 PM
13 comments, last by jtrost 22 years ago
Here''s the code:
http://pop3.route24.net/~jtrost/lesson01.cpp

The preprocessor directives are exactly how they appeared when I downloaded this file. More help would be greatly appreciated.
Include condefs.h instead of vcl.h, if you aren''t using any of the visual component library. BTW, at least in Borland c++ builder 4, if you create a console win32 program, then vcl.h is not included by default.
Advertisement
Sorry, that didn''t work either. I would really appreciate it if someone using Borland C++ 5 could copy what files they include and post them here.
I''m using this, and it compiled fine in BCB 4


#include <windows.h>
#pragma hdrstop
#include <condefs.h>
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h>



HTH

Prometheus

Another thought is:


In BCB, goto new, console project and Win32 GUI

This will set everything up right for you

This topic is closed to new replies.

Advertisement