🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.graphics.api.opengl
1 messages
1 total messages Started by John Slater Thu, 21 Mar 2002 14:28
opengl (glut) with borland
#87
Author: John Slater
Date: Thu, 21 Mar 2002 14:28
54 lines
3174 bytes
Hello.

I'm having problems getting glut to work with Borland C++ 5.5.1 (the
free commandline tools). I'm using windows 2000, I have ati radeon
7500 card. Drivers work fine with opengl based software (not that this
should matter on compile time).
Here is what I did, I downloaded glut-3.7.6-bin.zip (117 KB) from
http://www.xmission.com/~nate/glut.html . As stated in the docs I
'implib glut32.lib glut32.dll', then i copied glut32.dll to
c:\winnt\system32, glut.h to borlands include\gl folder and newly
created glut32.lib to borlands lib directory. Now I tried to compile
this program:

#include <GL/glut.h>

main()
{
	InitializeAWindowPlease();
	glClearColor (0.0, 0.0, 0.0, 0.0);
	glClear (GL_COLOR_BUFFER_BIT);
	glColor3f (1.0, 1.0, 1.0);
	glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
	glBegin(GL_POLYGON);
	glVertex3f (0.25, 0.25, 0.0);
	glVertex3f (0.75, 0.25, 0.0);
	glVertex3f (0.75, 0.75, 0.0);
	glVertex3f (0.25, 0.75, 0.0);
	glEnd();
	glFlush();
	UpdateTheWindowAndCheckForEvents();
}

I got the following errors and warnings:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
test.c: 
Warning W8065 test.c 5: Call to function 'InitializeAWindowPlease'
with no proto type in function main
Warning W8065 test.c 17: Call to function
'UpdateTheWindowAndCheckForEvents' with no prototype in function main
Warning W8070 test.c 18: Function should return a value in function
main
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'GLU32.LIB'

After I copied glu32.lib from lib\psdk to lib\ I get this error (plus
the same warnings as above):

Fatal: Unable to open file 'OPENGL32.LIB'

At this point I have no idea what to do next. Where do I get
opengl32.lib? And why am I getting all this function is not prototyped
warnings? Should I include any other header files as well?

Thank you in advance.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads