![](https://uploads.gamedev.net/forums/monthly_2020_04/2003510459a549db81158a09382c430e.image.png)
After updating gl headers, GLEW, and freeglut, i got this far. But no idea how to fix this.
After updating gl headers, GLEW, and freeglut, i got this far. But no idea how to fix this.
Hrmmm wierd. OK I'll upload the SLN files, to see if that makes a difference. :(
https://github.com/sjhalayka/julia4d3
I also uploaded the glext.h header and company into a file: https://github.com/sjhalayka/julia4d3/raw/master/glext_headers.zip
Come to think of it… glext.h shouldn't be required if you use GLEW. I think.
… does not work either. Problem is missing lib and dll files from glew and freeglut, and still some other headers. The ones that i have downloaded do not work neither with your project, nor with the one i have created.
I know it's not always recommended (or sometimes even not legal) to include such files in your repo. People solve this with providing CMAKE files to create projects (without a need to include sln etc.), and also some kind of github dependency links to other libraries in use.
Lots of work to setup and maintain.
And then i would not know how to resolve such dependencies at all - requires github client tool and command line hacker skills, which i lack. I always only download zip file from github and add dependencies manually until it works, after hours of anger. I'm not good at this.
At this point i often become envious to other programming languages or environments. In this regard C++ really sucks.
However, i did notice your glext.h is smaller so probably older than the most recent. Maybe updating all your dependencies makes the problem disappear?
@joej Looks like you have conflcting declarations. If i am not mistaken you do not need to include glext.h, glew already provides everything opengl (quite literally). Just include glew.h and tell the linker to include the gl or GL library and you're good for static linakge (at least on Linux).
If i recall it correctly, i mean. I have switched to glad or my own function loading, it's simpler that way than remembering headers and library names …
Not sure, but maybe glew is a dependency of freeglut. And both do not include prebuilt binaries (or project files to make build yourself easy). So i had to search for binaries from… somewhere, and sources of error ramp up.
Though, i came pretty far with making my own project. But after this final error:
I'm really out of ideas. Probably some freeglut issue.
I'm really out of ideas. Probably some freeglut issue.
Maybe you just need to just change SubSystem to Console.
Properties>Linker>System>SubSystem>
🙂🙂🙂🙂🙂<←The tone posse, ready for action.
Here is the pre-built Freeglut 3.0 for MSVC: https://www.transmissionzero.co.uk/files/software/development/GLUT/freeglut-MSVC.zip
The pre-built GLEW for MSVC is at: https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0-win32.zip/download
GLEW makes it to sound like it's a 32-bit build, but it actually also includes the 64-bit libs and dlls.
It sounds like you made a Windows project instead of an empty project. Are you using VS 2019?
If you ever get freeglut to compile, let me know. I've yet to accomplish that.
fleabay said:
Maybe you just need to just change SubSystem to Console.
Tried it but still the same error.
taby said:
Here is the pre-built Freeglut 3.0 for MSVC: https://www.transmissionzero.co.uk/files/software/development/GLUT/freeglut-MSVC.zip The pre-built GLEW for MSVC is at: https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0-win32.zip/download GLEW makes it to sound like it's a 32-bit build, but it actually also includes the 64-bit libs and dlls. It sounds like you made a Windows project instead of an empty project. Are you using VS 2019?
I've used exactly those links.
I made empty project with VS 2019. But my VS is a bit broken, profiler and other things do not work. Need to reinstall sometime. Maybe i'm too old to deal with modern computers, and everything i touch becomes broken : )
EDIT: to fix those function pointer issues from before, i've commented out some lines in glext.h. Probably not really a fix ; )