Jump to content
  • Advertisement
Sign in to follow this  
GameMasterXL

OpenGL compilation error?

This topic is 4733 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi i am creating the first application from the book begining openGL Game Programming and have put the Glut32.dll in the system32 folder and the glut32.lib in the libs folder and glut.h in my include files gl folder. I tried to compile it using the free Borland C++ builder compiler and i got this error: C:\Borland\BCC55\Bin>bcc32 -v simple.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland Simple.cpp: Warning W8057 Simple.cpp 84: Parameter 'state' is never used in function MouseHa ndler(int,int,int,int) Warning W8057 Simple.cpp 84: Parameter 'x' is never used in function MouseHandle r(int,int,int,int) Warning W8057 Simple.cpp 84: Parameter 'y' is never used in function MouseHandle r(int,int,int,int) Warning W8057 Simple.cpp 105: Parameter 'x' is never used in function KeyboardHa ndler(unsigned char,int,int) Warning W8057 Simple.cpp 105: Parameter 'y' is never used in function KeyboardHa ndler(unsigned char,int,int) This is error: Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: 'C:\BORLAND\BCC55\LIB\GLUT32.LIB' contains invalid OMF record, type 0x21 (possibly COFF) C:\Borland\BCC55\Bin> I don't know what it is meaning and what i should do, can anyone help me on what this means? All help will be fully appreciated thanks.

Share this post


Link to post
Share on other sites
Advertisement
How come that is happening since these are from the books CD?

Edit checked Google out couldn't a find a utility for it i am definatly stuck :(. If i could i would use visual C++ 2005 but i don't know how to set openGL up there and normal C++ so i can't use it.

Share this post


Link to post
Share on other sites
Quote:
Original post by GameMasterXL
How come that is happening since these are from the books CD?

That's because the libraries are meant for the Microsoft linker, not the Borland linker.

Quote:
Edit checked Google out couldn't a find a utility for it i am definatly stuck :(. If i could i would use visual C++ 2005 but i don't know how to set openGL up there and normal C++ so i can't use it.


coff2omf should be included in C:\Borland\BCC55\Bin.

Share this post


Link to post
Share on other sites
I found that but then it decreases the file size rapidly which leads me to think that it is deleting function entries and then on compilation asks for loads of lib files that it normaly gets on other programs.

Share this post


Link to post
Share on other sites
Just skip this example. In the rest of the book glut won't be used. Besides, it doesn't cover any advanced stuff yet and everything in it will be explained in chapter 3.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!