Visual c++ 2005 and OpenGl Problems

Reply

Join Date: May 2006
Posts: 2
Reputation: BlackManta is an unknown quantity at this point 
Solved Threads: 0
BlackManta BlackManta is offline Offline
Newbie Poster

Visual c++ 2005 and OpenGl Problems

 
0
  #1
May 27th, 2006
Hi all.

I have been trying to teach myself a little opengl and I have the Visual C++ 2005 express edition. Now I am sure the the biggest problem is the express part, but I downloaded the windows SDK like another thread suggested. I also used the #pragma command (I know it is is bad practice) Well the linker works butit says that gl.h has syntax errors. So I am very confused. Here is just a simple program I made just to import the files.

#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"glu32.lib")

#include "C:\ProgramFiles\MicrosoftSDKs\Windows\v1.0\Include\gl\gl.h"
#include"C:\ProgramFiles\MicrosoftSDKs\Windows\v1.0\Include\gl\glu.h"

void main()
{
}


Yes I know I used a static include as well. I am merely trying to start a simple openGL. Again it says that gl.h has a syntax error on this line.

WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);

debugger says void should be followed by a ;

Any help or is Visual C++ 2005 Express incapable of actually programming openGL?


If this is a dumb question I am sorry but I am new to Graphical programming.

Cheers
BlackManta
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 2
Reputation: BlackManta is an unknown quantity at this point 
Solved Threads: 0
BlackManta BlackManta is offline Offline
Newbie Poster

OPEN GL and VS 2005

 
0
  #2
May 27th, 2006
Doean anyone have some code that will work with Visual Studio 2005 that uses the open gl libraries. I have the express version and I installed the SDK. Now it says the gl.h file has a syntax error

here is my current (very simple) code

#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"glu32.lib")

#include "C:\Program Files\Microsoft SDKs\Windows\v1.0\Include\gl\gl.h"
#include "C:\Program Files\Microsoft SDKs\Windows\v1.0\Include\gl\glu.h"

void main()
{
}

Any tips just to get started would be a REAL help. The only otehr option is using dev C++ and importing the appropriate libraries for that compiler.
Thanks all (Code snibbits are welcome as long as they work!)
cheers
BlackManta
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: OPEN GL and VS 2005

 
0
  #3
May 28th, 2006
Yeah use dev-cpp

It should have it's own OpenGL libraries anywhoo?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC