Programming This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-24-2005, 09:05 AM
|
#1
|
|
Member
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320
Rep:
|
C for total noob
dear all,
i'd like to start programming in C++ in linux.
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...)
any suggestions welcomed,
cheers,
aj.
|
|
|
|
03-24-2005, 09:09 AM
|
#2
|
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
I'm moving you to programming because I think this has more relevance there. Good luck.
|
|
|
|
03-24-2005, 09:32 AM
|
#3
|
|
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246
Rep:
|
http://gtk.org/tutorial/
First of all though, you need to pick a language. Do you want to learn C or C++, because they are different.
|
|
|
|
03-24-2005, 09:42 AM
|
#4
|
|
Member
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320
Original Poster
Rep:
|
thank you itsme86.
i'm looking to program GUI applications which will basically read / write files, do some XML work and so.
i guess C++ is more recent (i guess more powerful..), that's why i wanted to try it.
what is GTK? is the same as GCC?
|
|
|
|
03-24-2005, 09:46 AM
|
#5
|
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
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.
|
|
|
|
03-24-2005, 10:11 AM
|
#6
|
|
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246
Rep:
|
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.
|
|
|
|
03-24-2005, 10:21 AM
|
#7
|
|
Member
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320
Original Poster
Rep:
|
thank you for this support.
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... 
|
|
|
|
03-24-2005, 10:23 AM
|
#8
|
|
Member
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468
Rep:
|
And if you're looking for an IDE I use KDevelop and quite enjoy it--beats editing sources in vi 
|
|
|
|
03-24-2005, 10:29 AM
|
#9
|
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
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.
|
|
|
|
03-24-2005, 10:33 AM
|
#10
|
|
Member
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320
Original Poster
Rep:
|
anjuta does look cool and familiar.
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)?
again, thank you,
aj.
|
|
|
|
03-24-2005, 10:40 AM
|
#11
|
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
I would recommend you become familure with C before you jump directly into GTK gui programming.
I don't actually use Anjuta myself, so I'll leave that question for somebody who has a more educated answer.
|
|
|
|
03-24-2005, 05:45 PM
|
#12
|
|
Member
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320
Original Poster
Rep:
|
thank you all,
i've downloaded and installed anjuta and glade (i already had gtk installed).
doing my first proggies... not sure if i took the easy way, i installed an XML parser for gnome and am trying to printout XML results in a treeview
cheers 2 you all,
aj.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
help im a total noob
|
darkx |
Suse/Novell |
2 |
11-20-2005 06:13 AM |
|
Total Noob
|
nomass |
Linux - Newbie |
8 |
05-12-2005 11:54 PM |
|
Total Noob
|
icadeal |
Linux - Distributions |
7 |
04-13-2005 08:46 PM |
|
Total noob
|
ini_Silent |
Linux - Newbie |
9 |
12-14-2003 10:07 PM |
|
I am a TOTAL noob.
|
Norrin |
Linux - Newbie |
17 |
08-14-2003 02:26 PM |
All times are GMT -5. The time now is 02:29 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|