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.
PS:
Please bear in mind: even if you want to write your application in C++, a procedural 'C" API is often the most effective way to do it. This is definitely true of SDL and, IMHO, also of GTK+.
The GTK library is written in C as far as I understand. You can write code in C++ instead, but you're fighting an uphill battle, especially if you dont understand C. I would learn a different API such as QT or WxWidgets if I were you. Or learn C. What is it about the examples you dont understand? C is very similiar to C++, especially if you dont have a firm handle on C++ classes, exceptions and the STL.
u really helped me out.., i hope now i can try my hands at linux graphics programming... using c++.
But the gtkmm.org has'nt got any full tutorials on it....??
You absolutely, totally do *not* have to use gtkmm if you want to write in C++. You can (and, I would argue *should*) code to the standard GTK+ 2.0/GDK API from your C++ classes. You may, of course, use gtkmm if you prefer to. But you do NOT have to. And personally, I prefer not to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.