🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.api.opengl
Article #87

opengl (glut) with borland

#87
From: 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.
Technical Details
Message-ID: <e0821c1d.0203210628.61ab788@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11605a,65c2846634a36bd3,start
X-Google-Attributes: gid11605a,public
X-Google-Thread: 10e433,65c2846634a36bd3,start
X-Google-Attributes: gid10e433,public
X-Google-Thread: 101b27,65c2846634a36bd3,start
X-Google-Attributes: gid101b27,public
X-Google-Thread: fa69e,65c2846634a36bd3,start
X-Google-Attributes: gidfa69e,public
X-Google-Thread: f65bb,65c2846634a36bd3,start
X-Google-Attributes: gidf65bb,public
X-Google-ArrivalTime: 2002-03-21 06:28:36 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: lesser66@hotmail.com (John Slater)
Newsgroups: comp.graphics.api.opengl,borland.public.cppbuilder.graphics,borland.public.cppbuilder.commandlinetools,borland.public.cpp.borlandcpp,borland.public.install.cppbuilder
Subject: opengl (glut) with borland
Date: 21 Mar 2002 06:28:36 -0800
Organization: http://groups.google.com/
Lines: 54
Message-ID: <e0821c1d.0203210628.61ab788@posting.google.com>
NNTP-Posting-Host: 195.29.48.25
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1016720916 3768 127.0.0.1 (21 Mar 2002 14:28:36 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 21 Mar 2002 14:28:36 GMT