drawing circle, line, arc etc. using c

Solution 1:

There is no standard graphics library in C. It's all third party. So you will never be able to write graphics code that's completely portable.

If you're using Linux, it's possible to use libgraph to enable the use of graphics.h. I found a question on askubuntu that covers this: How do I use graphics.h in Ubuntu?

If you're using Windows, it seems to be possible to use WinBGIm to use graphics.h. Geeks for geeks has instructions for how to use it with CodeBlocks https://www.geeksforgeeks.org/include-graphics-h-codeblocks/

I do not know how good these two options are, but they might be worth trying out. That will at least remove the Turbo dependency.