954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Lost

Hello. I am currently dabbling with C++ with view to learning openGL. I am using Microsoft Visual C++ and Borland compilers but the problem is neither of these programs want to accept any OpenGL code I put into them. Can someone please help me?

jd_1604
Newbie Poster
22 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

Please post some of the code you have be unable to compile and the compile errors you have been getting. Then someone might be able to help.

Steven.

Mushy-pea
Posting Whiz in Training
275 posts since Jun 2006
Reputation Points: 47
Solved Threads: 1
 

did you read the OpenGL FAQ ?

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Whenever I use #include Borland spits back E2209 Unable to open include file
Visual C++ gives me 'undeclared identifier'
This is becoming extremely frustrating as I am sure I have all necessary .h, .lib and .dll files that I need

jd_1604
Newbie Poster
22 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

Dear Ancient Dargon,

I have read FAQ's and similar from various other sites. Whenever I use #include Borland tells me it is unable to open include file and Visual C++ gives me 'undeclared identifier' error
I feel sure I have all relevant .h, .lib and .dll files in the correct place.

jd_1604
Newbie Poster
22 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

that's a great hint to you! you don't have to required files on your computer. poke around their site and I think you will find out how to get them (I don't think they are free)

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Cheers. Thanks for the help

jd_1604
Newbie Poster
22 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 
Whenever I use #include Borland tells me it is unable to open include file and Visual C++ gives me 'undeclared identifier' error I feel sure I have all relevant .h, .lib and .dll files in the correct place.


What is the FULL disk and path of the GL files that can't be found?
What is the FULL disk and path of the source code you are trying to comple?

WaltP
Posting Sage w/ dash of thyme
Moderator
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

When using Borland:
Source Code address: C:BORLAND\BC55\BIN\xxxx.CPP
GL Files address: C:BORLAND\BC55\INCLUDE\GLUT.H

When Using Visual c++:
Source Code Address: C:DOCUMENTS AD SETTINGS\JASON\MY DOCUMENTS\VISUAL STUDIO 20005\PROJECTS\xxxx.CPP
GL Files Address: C:PROGRAM FILES\MICROSOFT VISUAL STUDIO 8\VC\INCLUDE\GLUT.H

jd_1604
Newbie Poster
22 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 
Whenever I use #include Borland tells me it is unable to open include file and Visual C++ gives me 'undeclared identifier' error I feel sure I have all relevant .h, .lib and .dll files in the correct place.
When using Borland: GL Files address: C:BORLAND\BC55\INCLUDE\GLUT.H When Using Visual c++: GL Files Address: C:PROGRAM FILES\MICROSOFT VISUAL STUDIO 8\VC\INCLUDE\GLUT.H


You specify #include<<strong>gl\</strong>glut.h> , so where is theGL directory, since you told the compiler that's where the file is?

WaltP
Posting Sage w/ dash of thyme
Moderator
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 
You specify #include<<strong>gl\</strong>glut.h> , so where is theGL directory, since you told the compiler that's where the file is?



In VC++ The GL directory is located in c:\prog. files\MVS8\VC\Include\GL. This folder also contains GLAUX, glext, GLU, GL, glu_ and glut.h.
This file is also located in c:\prog files\MVS8\VC\Include. Along with GLAUX,glext,GLU,GL,glxext.h and glut.def
Could there be some confusion within this area?:confused: Or am I doing something horribly wrong?

jd_1604
Newbie Poster
22 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You