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:

//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 \) &amp;&amp; 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.

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:

http://support.borland.com/entry.jspa?externalID=246&categoryID=135

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.