ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
currently i'm a programmer in various lanugages, however have practically no real familiarity with C.
can anyone point me in the best possible direction for a complete noob tutorial which would explain which programs to use, how to compile, etc a typical graphical hello world application in linux? i always fall on visual C or other tutorials, which always presume you know how to compile stuff, which programs to use,... (weird, isn't it, for a beginner tutorial...)
GTK is a toolkit for GUI programming (used in things like The Gimp, The Gnome Desktop and Gaim). GCC is the Gnu Compiler Collection, which is what you use to compile your c, c++, and many other languages code under Linux.
C++ is really no more powerful then C. C++ simply provides extra constructs to make Object Oriented programming easier. That isn't to say you have to write object oriented code in C++, or that you can't in C. GTK is actually written natively in C though it has a very OO design.
It's a set of libraries that you can link into your program. You can read about it on their homepage: http://gtk.org/
C++ isn't "more powerful" than C. It's a different design approach from C. It's what programmers call Object Oriented. Personally, I can't stand C++, but I love C. GTK is more for C, than C++. QT is like GTK, but for C++. You might want to look into that too.
just to have a little more insight: i need to build an application which will have textboxes, labels, and a Tree View. that is pretty straightforward in development tools such as borland delphi, visual C and visual basic.
is the GTK able to handle things like treeviews? i just guess i am too narrow-minded to GUI programming by dragging components on a form, and cannot imagine how to do this in text-only mode...
Yes, GTK will support all of those things. If you are looking for an IDE I suggest you check out Anjuta. Anjuta will do other things, but it is based on GTK/C programming.
however:
1. isn't this too evolved for my 'noobity'?
2. i read it uses GTK and GLADE: do i need to install both? or only GT (which i already have installed)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.