Skip to content
← Back to Community
Does repl C compiler have <graphics.h> ?
Profile icon
Simplyagr

I was just checking out all the functionalities in C compiler. I wanted to include the graphics header file. It say that 'File does not exist'. Is there any other way round or I just can't use graphics.h header file?

Voters
Profile icon
Simplyagr
Comments
hotnewtop
Profile icon
WellSilver

Because replit doesnt provide any kind of integrated or dedicated graphics card it cant use librarys like opengl or vulkan but I dont know about SDL2 SFML or X11 like programmer user said

Profile icon
programmeruser

Us SDL2, SFML, or X11 instead.

Profile icon
Simplyagr

@programmeruser Ohh okay I dont know how to use SDL and stuff but thanks :)

Profile icon
realTronsi

@programmeruser those won't work on repl either

Profile icon
programmeruser

@realTronsi they will

Profile icon
realTronsi

@programmeruser proof? For example take SMFL, firstly it uses OpenGL which is not compatible on repl.

It also has several internal dependencies such as windows.h and graphics.h which aren't compatible on repl either

Profile icon
programmeruser

@realTronsi

  1. what? SFML des not have dependencies on windows.h and graphics.h or OpenGL, I believe it directly uses X11
  2. https://repl.it/@programmeruser/sfml
Profile icon
realTronsi
Profile icon
realTronsi

nope nothing related to graphics such as windows.h or graphics.h is available here

Profile icon
Simplyagr

@realTronsi Okay thankyou :)