LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-02-2006, 03:25 PM   #1
Akabaka
LQ Newbie
 
Registered: Oct 2005
Location: United States
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
Cross platform C GUI library?


I want write programs in C that have a GUI and work in at least Windows and Linux X11. All of my searches so far have yielded cross-platform C++ libraries, which I do not want, or C GUI libraries that only work in Linux. Is there a cross-platform GUI library that uses strait C?
 
Old 04-02-2006, 03:37 PM   #2
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
a simple answer, no.

which libs are c based gui for linux?
the entire functionality of widgets requires at least objective c, or C++. the class / object support is what enables the gui functionality.
 
Old 04-02-2006, 03:55 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
The answer is GTK.
 
Old 04-02-2006, 04:07 PM   #4
Akabaka
LQ Newbie
 
Registered: Oct 2005
Location: United States
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Wow...such a fast reply. Thanks!
There were a one or two Linux-only C GUI libraries. I saw them here.
http://http://www.geocities.com/Sili...4/guitool.html
They seemed pretty obscure. "EZWGL, the EZ Widget and Graphics Library, is a GUI and graphics library for X11. It is a C library written on top of Xlib."
 
Old 04-02-2006, 10:36 PM   #5
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Akabaka -

What Jaqui said is flat-out wrong. You do *not* need an OO language to write GUI's, any more than you need to speak French in order to write good poetry.

Mara's suggestion about GTK+ is an excellent one: GTK+ is powerful, it's cross-platform, and you can code it in C, if you choose:

http://www.gtk.org/download/

'Hope that helps .. PSM

Last edited by paulsm4; 04-02-2006 at 10:38 PM.
 
Old 04-02-2006, 11:11 PM   #6
Akabaka
LQ Newbie
 
Registered: Oct 2005
Location: United States
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks a lot. I'm going to begin learning GTK+ when I get the time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cross-Platform GUI Frontend for MySQL chandru.in Linux - Software 2 08-10-2005 08:13 AM
Cross Platform GUI development Artik Programming 15 06-29-2005 07:36 PM
A cross-platform networking library? elluva Programming 4 02-15-2005 05:35 PM
Linux/windows Cross Platform Gui toolkit. mr_segfault Programming 7 10-31-2004 05:57 PM
Cross Platform c++ gui programming djadhav Programming 8 05-25-2004 03:15 AM


All times are GMT -5. The time now is 03:22 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration