OpenGL in VC++ 2005

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2005
Posts: 71
Reputation: AhmedHan is an unknown quantity at this point 
Solved Threads: 1
AhmedHan's Avatar
AhmedHan AhmedHan is offline Offline
Junior Poster in Training

OpenGL in VC++ 2005

 
0
  #1
Mar 4th, 2006
I had been studying OpenGL in DevCPP all the time. Using DevCPP you link OpenGL library files libopengl32.a and libglu32.a adjusting project options. But I dont know how to do this in VC++.
Can you help me what files to link and how to link in Visual Studio 2005 for OpenGL?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: OpenGL in VC++ 2005

 
0
  #2
Mar 4th, 2006
Install the Win32 platform SDK, and link in OpenGl32.lib
I don't think you need to do anything else.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: OpenGL in VC++ 2005

 
0
  #3
Mar 4th, 2006
though you may also want Glu32.lib
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 71
Reputation: AhmedHan is an unknown quantity at this point 
Solved Threads: 1
AhmedHan's Avatar
AhmedHan AhmedHan is offline Offline
Junior Poster in Training

Re: OpenGL in VC++ 2005

 
0
  #4
Mar 5th, 2006
It is well explained in MSDN :

To add .lib files as linker input in the development environment

Open the project's Property Pages dialog box. For details, see -Setting Visual C++ Project Properties.
-Click the Linker folder.
-Click the Input property page.
-Modify the Additional Dependencies property.
To programmatically add .lib files as linker input
Thanks everybody!
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 71
Reputation: AhmedHan is an unknown quantity at this point 
Solved Threads: 1
AhmedHan's Avatar
AhmedHan AhmedHan is offline Offline
Junior Poster in Training

Re: OpenGL in VC++ 2005

 
0
  #5
Mar 5th, 2006
And also,
  1. #pragma comment(lib, "opengl32.lib");
  2. #pragma comment(lib, "glu32.lib");
may be added at the beginning of the program code as an alternative.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: OpenGL in VC++ 2005

 
0
  #6
Mar 5th, 2006
yes, but that makes your sources compiler dependent, something you should if possible try to avoid
Better let the linker config handle such details.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC