cbgi

Can gcc compile graphics.h or will graphic.h only compile with the borlan turbo c compiler


I see everyone recommends just using openGL and some others but I don't wanna. I just want to know if graphic.h will only compile in turbo c and not with gcc, Thanks


Solution

  • You might get graphics.h compiled (as #included part of some sources), but the linking (coming after the compilation) will fail, as gcc's linker (ld) would not link the compilation's result against the library (graphics.lib) implementing what graphics.h prototyped.