Question

I program mostly in C while studying at university. I was wondering if there is some simple open-source library that would let me make a GUI for a program in C.

Things to concider by priority:

  1. Simple
  2. Nice-looking
  3. Features

I don't know how to program in C++ and would prefer to stay in pure C.

No correct solution

OTHER TIPS

i would highly recommend Glade + GTK.

i use it in combination with python, and it works quite well. it's also very simple to use.

here is an example:

http://people.gnome.org/~newren/tutorials/developing-with-gnome/html/apc.html#libglade-example-1

hope that helps!

EDIT:

here is a more extensive tutorial:

http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html

However, notice that it might be difficult to write GUI code in C which runs on many different systems (e.g. on Linux, MacOSX, Android, and Windows). Gtk claim to have such a goal, but I don't know if it fully reached.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top