LinuxQuestions.org
Review your favorite Linux distribution.
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 01-19-2004, 07:02 PM   #16
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31

Then I guess we have a misunderstanding here.

To me it reads as if you want to use the exec-function but don't know which header file you use. If that's the case then `man` will help you. I just tried it and these are the first lines I got:

Code:
EXEC(3)                    Linux Programmer's Manual                   EXEC(3)

NAME
       execl, execlp, execle, execv, execvp - execute a file

SYNOPSIS
       #include <unistd.h>
.
.
.
so, as you can see, exec() needs the the unistd.h-file included.

----------------

If that's not the case then you might want to post the question more specific.

What do you want to program, a graphical application? Then have a look at QT, GtK+ or wxwindows. A console application then see if a bash/perl/python/tsh/csh or other script languages there are, if they're not enough, there are Linux compilers for C,C++, Java, Fortran, Pascal and hundreds of others languages (well, except for C# maybe ) out there that may suit your needs. If you want to do some driver development your first look might go into /usr/src/linux/Documentation .... the possibilities are endless and that's why it's so difficult to answer your question.

So guys, don't flame each other. This guy's a coder as we all are
 
Old 01-19-2004, 07:08 PM   #17
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Hello,

I have C++ and I come from windows. Windows has a base API not just for the GUI but for basic operation like the exec() function....

I want to learn the linux base API (if there is on) and where I can locate the API... I do not want to learn a GUI API right now....

So heres my question:
Dose linux have a base API other than a GUI's API, or dose it just use the std files (stdio.h and such)? If the first option is right where can I get them and learn it?

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

Rep: Reputation: 67
If you are programming in C++ a good place to start looking about libraries is here:
http://gcc.gnu.org/onlinedocs/libstd...mentation.html

That is the documentation for the GNU C++ Standard Library which is what I would consider the standard application interface for a linux C++ program. It works in conjunction with gcc which is the standard compiler most people use.


I am not sure how good a job they do, but they try and talk about the differences between how gcc does C++ vs. other implementations people are used to using. I have only ever done C++ with gcc so that didn't mean much to me personally and I skipped it.
 
Old 01-19-2004, 08:06 PM   #19
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Ok thank you very much!

Andrew
 
Old 01-19-2004, 11:04 PM   #20
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Quote:
Originally posted by AndrewBalmos
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
oh so you know all the 80,000 some winapi functions?
 
Old 01-20-2004, 04:05 AM   #21
worldmagic
Member
 
Registered: Oct 2003
Location: Europe/Sweden
Distribution: RedHat
Posts: 78

Rep: Reputation: 15
Depends what you are looking for.

I guess, that you know C++. Else you wouldnt ask about the API for linux (C++ classes)
Therefor I guess its not reference documentation for the language itself you need.
As some people pointed out theres online references to the language C++ and C on gnu.org

Linux does not have a foundation C++ library, if you looking for a foundation library for linux I would have to dispoint you. Most of Linux (and Unix) is coded in C. And the man pages are the place to look for documentation of specific functions. However learning from the man pages alone is not easy, and you should get a good book teaching Unix API. Linux follows (most of) the Unix API (A table of Unix API function calls can be found at www.unix.org). I would recomend a book here, but.. It actualy slipped my mind. You could however get _any_ Unix-C-Api book out there, it does not have to be Linux specific. If anything missmatches then refere to the man pages. By the way, the man pages are installed when you install the development enviroment on Linux (This is normaly included in every distribution of Linux.. RedHat, Suse, Debian).

Did a search on google, and I think this could be a good book for you: "Advanced Programming in the UNIX Environment" (http://www.amazon.co.uk/exec/obidos/...348230-1206259).

These APIs does not include any GUI stuff at all !!!! Unix is very "down to basics" and to code GUI you need to use one of the many GUI libraries around (GTK, Xt, etc..).

If you do not want to learn C, and if you are stuck in classes theres libraries thats "ontop" of the Unix-System(C)-Api. These libraries might be what you looking for if you want to getup to speed in development under Linux. wxWindows.org is one of these, its a GUI library but it also includes socket handling, for normaly file handling you can use the normal C++ language API.

Both C and C++ compilers are installed if you install the development enviorment when installing Linux on your box. You can find the includefiles in diffrent locations on the machine, most common are /usr/include, /usr/X11R6/include and /usr/local/include. The C manual you find using the man pages "man socket". The howtos you find in general Unix books, as IDE (integrade development enviroment) (think VisualStudioC++) you can use KDevelop (www.kde.org).

Hope this helped some, and that I didnt get what you wanted wrong =)
 
Old 01-20-2004, 07:02 AM   #22
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
You can also try out the libraries that come with linux like Qt or GTK+. They cover every API that is in Windows, and you don't need to look for any other API's when you use them!
 
Old 01-20-2004, 05:00 PM   #23
AndrewBalmos
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
No I do not know ALL the win32 functions but I know what I need...

I was using Win32 API as an exapmle....

Worldmagic, thank you or response hit it on the head... I tried goggling but I was googling the Wong term and I found nothing...

This is why I asked...

I have programed in wrappers like WxWindows and SDL and I don't seem to like the resutels...

Thanks A Again!

Andrew
 
Old 01-22-2004, 09:45 AM   #24
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Rep: Reputation: 30
Just a thought...

Quote:
originally posted by Stack
oh so you know all the 80,000 some winapi functions?
You needn't be so rude.. he merely asked where to learn them..he didnt say anything about knowing all the winapi functions... if you cant post something helpful or nice... then dont post... LQ.org is not about flaming others...if you cant help or dont want to... dont post...simple as that.

Regards,
JM

Last edited by WindowsBurner; 01-22-2004 at 09:47 AM.
 
  


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
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 08:19 AM.

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