LinuxQuestions.org
Visit Jeremy's Blog.
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 01-18-2004, 01:52 PM   #1
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Rep: Reputation: 15
Linux Programming?


Hello,

Dose linux have a API like windows?

If so what is it?

Do you know where I can find a tutorial on learning and using it?

Thanks,
Andrew
 
Old 01-18-2004, 01:56 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
glibc is probably what you are looking for. www.gnu.org has information on it.

As far as GUI API's Qt and GTK+ are the most common used.
 
Old 01-18-2004, 02:04 PM   #3
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
http://developer.gnome.org/doc/API/2...tkobjects.html
 
Old 01-18-2004, 02:54 PM   #4
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Is there a API for the *nix exec() function for example?

Thanks,
Andrew
 
Old 01-18-2004, 02:57 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
man exec


Cheers,
Tink
 
Old 01-18-2004, 03:01 PM   #6
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Hello,

Ok what I am asking is there and files (header) that needs to be include to use functions like exec() (THIS IS JUST AN EXAMPLE FUNCTION)? Like windows needs windows.h to be included.

Thanks,
Andrew
 
Old 01-18-2004, 03:38 PM   #7
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Yes, if you type man exec it'll tell you that at the begining of the file. I believe exec() is in stdlib.h.
 
Old 01-18-2004, 03:43 PM   #8
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Ok so it is just the standers header files.

I am not running Linux right now because I cant get my Wireless internet working and I am still waiting for a reply to my post..

So I could not run nam exec()

Andrew
 
Old 01-18-2004, 03:46 PM   #9
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Right. It is all documented on the gnu.org site in the glibc manual. And it is also documented in the man page for the functions.
 
Old 01-19-2004, 05:43 PM   #10
krajzega
Member
 
Registered: Jan 2004
Location: Poland
Distribution: FreeBSD 5.1
Posts: 92

Rep: Reputation: 15
OMG.
Its not difficult to redirect someone to other page or manual. I hope that Linuxquestions.org is based on asking and answering questions. If you've got no idea, it would be better to don't write. Imagine how would it be when everyone will be replying posts with a constant content- man ....
Ok, i've ran over the topic...so of course there are API for GUI in Linux, but it's better to start with console, which is more usable than in MsDOS.
 
Old 01-19-2004, 05:59 PM   #11
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
krajzega....

You ever heard the saying "You can give a man a fish, and he can eat once, or you can teach a man to fish, and he can eat forever."?

If you need to know what include files to use for a particular function the way to find it out is to look at the manual page. The first thing it tells you is what include files are required. It is a hell of a lot easier to learn to do that then to have to ask everytime you want to use a new function.
 
Old 01-19-2004, 06:10 PM   #12
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
First I was not asking about one include file in general.

I was asking about linux programing! There could be 1000's of headers!

Where do I get them? Where can I learn how to use the functions in them?

krajzage, thanks for the reply but I am not looking for a GUI API...

Just basic Linux C++ functions...

Andrew
 
Old 01-19-2004, 06:22 PM   #13
krajzega
Member
 
Registered: Jan 2004
Location: Poland
Distribution: FreeBSD 5.1
Posts: 92

Rep: Reputation: 15
Take a look to manual is much easier than explaining many things here, but what to do when someone doesn't have Linux yet?
 
Old 01-19-2004, 06:35 PM   #14
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
That is why gnu is nice enough to put the man pages for all there functions on-line. As I stated above.
 
Old 01-19-2004, 06:48 PM   #15
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
I am not looking for just ONE functions... I am looking to learn how to use ALL the functions in a manner like a book or online HOWTO guide...

And where to the headers...

MAN wont help me there...

Andrew
 
  


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
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM
New Forum for Linux-Gurus[Programming/Administration] or Linux-Advanced Users [ Progr raees LQ Suggestions & Feedback 5 04-12-2005 07:35 PM
C/C++ programming for linux leeman_s Linux - General 6 01-28-2003 06:16 PM
Exp. Windows/Linux-Script Programmer - Need Linux Programming Mentor! ruttiger Linux - Newbie 2 10-28-2001 11:00 AM
New to Linux programming .... need help Izhar Programming 2 10-17-2001 03:34 AM

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

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