I just installed Windows 7 and my code relies on gl.h and other gl files to compile. (gl, glu, glext, glut, glaux and wglext) I originally ...
WherecanIdownloadgl.h?
OpenGL
windows
CJ_Clark
February6,2011,11:17pm
#1
IjustinstalledWindows7andmycodereliesongl.handotherglfilestocompile.(gl,glu,glext,glut,glauxandwglext)Ioriginallyjusttyped“downloadgl.h”ingoogleandfoundit.Nowitdoesn’tseemtoexist.I’vespentthelasthoursearchingaroundandalllinksthatseemtosaytheyhaveit,don’twork.Everyonesayslookonopengl.org.Thathasprovenveryfruitless.
Doesitevenexist?Hasitbeenmergedintosomethingelse?
Ifso,cansomeonePLEASEprovideadirectlink?Thankyou.Thankyou!
Alfonse_Reinheart
February7,2011,12:27am
#2
IjustinstalledWindows7andmycodereliesongl.handotherglfilestocompile.
Idon’tknowofaC++compilerenvironmentforWindowsthatdoesn’tinclude.AlloftheVisualStudiosdo,eventheexpresseditions.TheWindowsPlatformSDKdoes.
Somaybeyoushouldlookatyourcompilerenvironmentandchecktoseeifyourincludepathsareworking.
mhagain
February7,2011,3:23am
#3
Alfonse_Reinheart:
IjustinstalledWindows7andmycodereliesongl.handotherglfilestocompile.
Idon’tknowofaC++compilerenvironmentforWindowsthatdoesn’tinclude.AlloftheVisualStudiosdo,eventheexpresseditions.TheWindowsPlatformSDKdoes.
Somaybeyoushouldlookatyourcompilerenvironmentandchecktoseeifyourincludepathsareworking.
VisualC++2005Expressdoesn’tprovideit,butthenagainitdoesn’tprovidetheWindowsSDKheadersandlibseither,sotheyneedtobedownloadedandtheywillincludegl.h
Fortunatelyit’sanabsolutedoddletoupgradea2005projectto2008.
CJ_Clark
February7,2011,10:13pm
#4
Thanksforthereply.Ididasearchinmyincludedirectoriesandfoundit.Ididn’trealizeitwasthere.UnfortunatelyVCdoesn’tautopointtoit,Ihadtoupdatemyincludepaths.Lame…
AnyideaswhereIcouldfindglext,glut,glauxorwglext?
Thanks,Iappreciatethehelp.
Alfonse_Reinheart
February8,2011,2:13am
#5
AnyideaswhereIcouldfindglext,glut,glauxorwglext?
Youdidn’tspendanytimesearchingforthose.Atall.Typing“glext”intoGooglecametothisonthesecondlink:TheOpenGLRegistry(theactualheaderwasthefirstlinkinGoogle).WhichisalsoconvenientlylinkedfromeverypageatOpenGL.org(andanyonespendinganytimedoingGLprogrammingshouldhaveitonaquick-linkbookmark).
Also,neveruseglaux.There’snoreasontodoso.Itisbeyondancient,andwasneverparticularlygoodwhenitwasfairlynew.
Similarly,neveruseGLUT.UseFreeGLUTinstead.GLUTisold,butunlikeglaux,wasactuallygood.GLUTsimplyhasn’tbeenupdatedinalmostadecade,anditshows.FreeGLUTisalmost100%compatiblewithGLUTandaddsnewfeaturesontopofthat.
mhagain
February8,2011,3:17am
#6
CJ_Clark:
Thanksforthereply.Ididasearchinmyincludedirectoriesandfoundit.Ididn’trealizeitwasthere.UnfortunatelyVCdoesn’tautopointtoit,Ihadtoupdatemyincludepaths.Lame…
AnyideaswhereIcouldfindglext,glut,glauxorwglext?
Thanks,Iappreciatethehelp.
MSVCdoesautomaticallyaddittoyourincludedirectoriesforallprojectsifyou’vesetthingsupcorrectlyandhaven’tmessedwithitafterwards.Ifyoucan#includethenyoucanalso#include,endofstory.Thesoleexceptionis2005Expresswhichneedsquiteabitofjiggerypokery,butthat’salsoneededforplainoldwindows.handisnotan“OpenGLonWindows”thing.
Vance
February20,2011,5:09pm
#7
I’vebeenrunningintocompilererrors:Specifically-
main.obj:errorLNK2019:unresolvedexternalsymbol__imp__glPopMatrix@0referencedinfunction_WinMain@16
…whichmeansIdon’thavetheobjectfilessetupinthelinkerforthegl.hfilestocompilewith.AnyideawhereIcanfindthelibraryfilesfortheNVidiadriversafterthey’vemysteriouslyinstalledsomewhere?CanIalsogethelpwiththeconfigurationpageforMicrosoftVisualStudio2010?
I’vedonethisbefore,andI’msureitworks…
ljbade
February21,2011,5:09am
#8
Linkwithopengl32.lib(partofWindowsSDK,comeswithVisualStudio).
mhagain
February21,2011,8:08am
#9
Eitheraddthislinetoa.c(or.cpp)filesomewhereinyourproject:
#pragmacomment(lib,"opengl32.lib")
Orsetyourlinkeroptionstoinclude“opengl32.lib”in“AdditionalDependencies”.
xsnwflake
April28,2011,4:09pm
#10
fatalerrorC1083:Cannotopenincludefile:‘GL/glaux.h’:Nosuchfileordirectory
I’mquitenewatopenglandit’sverycriticalformetofixthat.Icouldn’tdothisforminutes.Couldanyonehelp?
mhagain
April28,2011,5:44pm
#11
You’refollowingaNeHetutorialforloadingabitmap?
glauxisanoldoldoldoldoldlibrarythathasbeendeprecatedforroundabout15yearsorsoandnolongershipswithanyIDEorSDK.Youshouldn’tuseitinotherwords;thereareplentyofotherimagelibrariesaroundthataremoreuptodate.DevILisoneexampleandthereisevenapagedescribinghowtouseitwithOpenGLhere:http://openil.sourceforge.net/tuts/tut_10/index.htm;thereareplentyofothers.
gl.h
December16,2020,12:06pm
#12
Hi,
MinGWhasgl.h,glu.handglext.hinsidetheC:\MinGW\include\GL
InstallMinGWfromsourceforge.SelecttheC++packages/compiler
Iinstalledmingw-getversion0.6.2-beta-20131004-1.
IusedMinGWandCodeBlocks(witchrequirestheGCCcompilerfromMingw)tocompiletheglxgearsprojectfromlinuxinWindows7.
system
closed
October19,2021,6:12pm
#13
Thistopicwasautomaticallyclosed183daysafterthelastreply.Newrepliesarenolongerallowed.