LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 04-17-2005, 06:48 AM   #1
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Rep: Reputation: 30
C or C++ when making GTK applications


I'm going to learn myself how to make GTK-applications. Should I use C or C++?

I'm going to use Glade for the UI, and Glade supports C and C++.
 
Old 04-17-2005, 06:50 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Use whichever you're more comfortable with
 
Old 04-17-2005, 07:10 AM   #3
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Original Poster
Rep: Reputation: 30
I've just heard that C is best to use with GTK...?
 
Old 04-17-2005, 07:55 AM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
GTK is actually written in and for C. There are wrappers for just about every language under the sun. I've used GTKMM (the C++ wrappers for GTK) and found it to be fairly simple to pick up. I chose C++ because I'm a more competant C++ programmer than C programmer and as I'm primarily a Java programmer I found the object oriented nature of C++ more suiting to my programming style.
 
Old 04-17-2005, 08:04 AM   #5
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Original Poster
Rep: Reputation: 30
I think I will go for C then.

Can anyone recommend a book about C that is available on the internet?
 
Old 04-17-2005, 03:30 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
GTK reference from gtk.org is best. There's also a tutorial, good for beginning, but you'll need the reference very soon.
 
Old 04-17-2005, 09:11 PM   #7
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
http://www.linuxquestions.org/questi...hreadid=311651
 
Old 04-20-2005, 02:26 AM   #8
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Mara
GTK reference from gtk.org is best. There's also a tutorial, good for beginning, but you'll need the reference very soon.
But I need to learn C aswell... Any good online books?
 
Old 04-20-2005, 03:19 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by objorkum
But I need to learn C aswell... Any good online books?
Try to get Kerninghan & Ritchie C book. Should be in (nearly) every library.

There are really many online C books, but I can't say how good they are when you're learning.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running gtk applications shezkhan Linux - Software 1 11-24-2005 09:32 AM
change font(size) for GTK based applications? the_low Linux - Newbie 2 08-03-2005 03:49 PM
Large fonts in GTK(1) applications objorkum Slackware 4 12-05-2004 03:54 PM
dark color in some (gtk?) applications. rgiggs Slackware 11 07-15-2004 02:33 PM
GTK+2, problems with applications that won't display fonts correctly Sm0k3 Slackware 2 09-12-2003 02:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration