nobody wrote on Thursday, May 05, 2005:
Hi, I used Borland C++ 5.6.4 to compile GLFW using the command "make win32-bcc". I then followed the instructions in "readme.html" for where to put glfw.lib, glfw.dll, glfwdll.lib, and glfw.h.
I then tried to compile the following program:
//BEGIN PROGRAM
#include <gl/glfw.h>
int main()
{
int running = GL_TRUE;
// Initialize GLFW
glfwInit\(\);
// Open an OpenGL window
if\( \!glfwOpenWindow\( 300, 300, 0, 0, 0, 0, 0, 0, GLFW\_WINDOW \)\)
\{
glfwTerminate\(\);
return 0;
\}
// Main loop
while\( running \)
\{
// OpenGL rendering goes here...
glClear\( GL\_COLOR\_BUFFER\_BIT \);
// Swap front and back rendering buffers
glfwSwapBuffers\(\);
// Check if ESC key was pressed or window was closed
running = \!glfwGetKey\( GLFW\_KEY\_ESC \) && glfwGetWindowParam\( GLFW\_OPENED \);
\}
// Close window and terminate GLFW
glfwTerminate\(\);
// Exit program
return 0;
}
//END PROGRAM
I tried compiling it using the following makefile:
//BEGIN MAKEFILE
CC = bcc32
CFLAGS = -q -w
LD = ilink32
LDFLAGS = -q
glfw: glfw.obj
${LD} ${LDFLAGS} glfw.obj glfw.lib opengl32.lib user32.lib kernel32.lib
glfw.obj: glfw.cpp
${CC} ${CFLAGS} -c glfw.cpp
//END MAKEFILE
As you can see, I tried linking with all the suggested .lib files. However, I get the following "Unresolved external" error:
Error: Unresolved external ‘__turboFloat’ referenced from root
If anyone can help I would appreciate it very much. Please keep in mind that I am a total noob to OpenGL, GLFW, and makefiles.