Need Help: Borland C++ 5.6.4

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:

#include <gl/glfw.h>

int main()
int running = GL_TRUE;

// Initialize GLFW

// Open an OpenGL window
if\( \!glfwOpenWindow\( 300, 300, 0, 0, 0, 0, 0, 0, GLFW\_WINDOW \)\)
	return 0;

// Main loop
while\( running \)
	// OpenGL rendering goes here...
	glClear\( GL\_COLOR\_BUFFER\_BIT \);

	// Swap front and back rendering buffers

	// Check if ESC key was pressed or window was closed
	running = \!glfwGetKey\( GLFW\_KEY\_ESC \) &amp;&amp; glfwGetWindowParam\( GLFW\_OPENED \);

// Close window and terminate GLFW

// Exit program
return 0;


I tried compiling it using the following makefile:

CC = bcc32
CFLAGS = -q -w
LD = ilink32

glfw: glfw.obj
${LD} ${LDFLAGS} glfw.obj glfw.lib opengl32.lib user32.lib kernel32.lib

glfw.obj: glfw.cpp
${CC} ${CFLAGS} -c glfw.cpp

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.

nobody wrote on Friday, May 06, 2005:

I also tried compiling using gcc and got this:

glfw.o(.eh_frame+0x11):glfw.cpp undefined reference to ‘__gxx_personality_v0’

marcus256 wrote on Monday, May 09, 2005:

I Googled "__turboFloat", and found this:

Perhaps that helps?

nobody wrote on Monday, May 09, 2005:

I also googled my problem and found that. I didn’t even have the file they talk about, but I created one and tried what they said. It didn’t help. I got the same message.

Thanks anyway. I appreciate it.

I’m using GLUT instead at the moment because I don’t get errors, but I would really prefer to use GLFW if someone can help me fix this.