Jump to content

How to setup openGL with dev C++ for using it with C?

Go to solution Solved by VirusDumb,

UPDATE:

Fixed the issue by simply selecting the 32 bit compiler for GCC which was just there infront of my eyes, all I had to do was select the 32 bit in compiler options while putting the linker commands and then using it from the drop down to run them

image.png.eb16d474d175b5185a2178ff1c19ca47.png

 I wanna make this but I don't have openGL set up

I tried 2 process, first is this video

where I just instead of using the MinGW32 folder I pasted them in the x86_64-w64-mingw32 inside MinGW64 because the MinGW32 wasn't there for me

then I tried using the mingw version from here https://www.transmissionzero.co.uk/software/freeglut-devel/ and that didn't work either both resulted in these same errors

 

image.thumb.png.b225721525119be2f941ebe8cf4de648.png

 

Link to post
Share on other sites

Side note - OpenGL has limited use nowadays. It's semi-alive on Linux and used rarely on Windows, mostly for some old app or some CAD-like app. If you are trying OpenGL on Windows it will be annoying. If you want to make games use a higher-level and feature complete game engine.

Link to post
Share on other sites

17 hours ago, riklaunim said:

Side note - OpenGL has limited use nowadays. It's semi-alive on Linux and used rarely on Windows, mostly for some old app or some CAD-like app. If you are trying OpenGL on Windows it will be annoying. If you want to make games use a higher-level and feature complete game engine.

I just want to learn the very low levels of graphics programming and this is the only tutorial I could find, and most other tutorials are in openGL too, I guess I'll have to try some other libraries

Link to post
Share on other sites

9 hours ago, VirusDumb said:

I just want to learn the very low levels of graphics programming and this is the only tutorial I could find, and most other tutorials are in openGL too, I guess I'll have to try some other libraries

OpenGL is still taught in some universities and in some courses as an introduction to the general workflow of GPU computing - whether gaming or not. It's not "hot" anymore as compute moved to Metal/DX12/Vulkan. Basic concepts are the same, but workflow/API is different. If you want low-level help with that you will have to go to a dedicated discord/mailing list community uses as it's a niche topic for developers so there aren't many of them. You can check this channel:

 

https://www.youtube.com/@GetIntoGameDev/playlists

 

It covers a lot, but IMHO you should also look at some sort well well-rated on-site bootcamp/university course.

 

 

Link to post
Share on other sites

UPDATE:

Fixed the issue by simply selecting the 32 bit compiler for GCC which was just there infront of my eyes, all I had to do was select the 32 bit in compiler options while putting the linker commands and then using it from the drop down to run them

image.png.eb16d474d175b5185a2178ff1c19ca47.png

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×