-1

I want to use the graphics library in c, more precisely graphics.h. I use the gcc compiler and sublime text to program. I have tested many solutions but none of them work. Do you have one that can help me?

genpfault
  • 49,394
  • 10
  • 79
  • 128
  • What does "adding graphics library to GCC" even mean? Are you trying to link a graphics API to your code? Please describe what you want to achieve clearly. – melonduofromage Feb 06 '22 at 13:13

1 Answers1

0

I have search everything but can't find anything that work.

I am not surprised. You cant add graphics library to GCC. Same the text editor does not matter.

To be more complicated there is nothing like a one graphics library. To use graphics you need to use OS-specific libraries and headers.

Here you have some examples + makefile to build Linux OpenGL demos. https://github.com/blackle/Linux-OpenGL-Examples

0___________
  • 47,100
  • 4
  • 27
  • 62