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 05-28-2003, 10:27 AM   #1
Roy-Svork
Member
 
Registered: Jan 2003
Location: Reading, UK
Distribution: Mandrake 9.2
Posts: 56

Rep: Reputation: 15
Post Linux Header Files


I understand that included in the average linux distribution are certain header files for things like media playing and other hardware/software interfaces.

Where might I find more specific information about these and how I would go about using them in either c or delphi if possible?

AHMA
 
Old 05-28-2003, 10:51 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Are you asking about the kernel source headers?

Perhaps if you explain what you are attempting to do, what you have done and post the resulting error messages, we could help better.

# Mandrake links
Mandrake home page
Mandrake Users website
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
 
Old 05-29-2003, 03:27 AM   #3
Roy-Svork
Member
 
Registered: Jan 2003
Location: Reading, UK
Distribution: Mandrake 9.2
Posts: 56

Original Poster
Rep: Reputation: 15
Arrow more...

I was asking in a very general way, and have not actually attempted anything yet, but I will try and explain more thouroughly:

I don't know if these are specifically kernel headers, but while installing my system I saw a file called something like "Multimedia header files" get copied across. I took this to mean that somewhere on the system is a header file I can either #include or put in the uses list (delphi), and then have acess to a variety of abstract commands such as playmedia, for example (just a guess!!). Also knowing a small amount of how linux is built up, there must be a few of these available to use in linux programming.

All I need to know is where to find them really, and I can probably work out the rest.

Also on a related note, can I link c object code (precompiled) into delphi?

AHMA
 
Old 05-29-2003, 12:43 PM   #4
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Include GTK+ or QT header files and use those libraries classes and functions which will allow you to play music, etc. Linux does provide system header files that you can include in a C application but I'm not sure what they offer, not having used them myself.
 
Old 05-29-2003, 04:03 PM   #5
Roy-Svork
Member
 
Registered: Jan 2003
Location: Reading, UK
Distribution: Mandrake 9.2
Posts: 56

Original Poster
Rep: Reputation: 15
Talking Aha

Ahh, much good is this. Thankyou, and if you can give me some links to documentation for these I would be furtherly greatful.

 
Old 05-29-2003, 11:00 PM   #6
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
The header files are usually in 'include' directories ex:
/usr/include/

These include declerations for all of the system functions. When you do

#include<stdio.h>

you are including the file /usr/include/stdio.h to your code.

also check out /usr/src/linux/include for the kernel headers.

Check'em out... many are documented well.... there's also man pages.
 
Old 05-29-2003, 11:17 PM   #7
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Re: Aha

Quote:
Originally posted by Roy-Svork
Ahh, much good is this. Thankyou, and if you can give me some links to documentation for these I would be furtherly greatful.

GTK+ link
www.gtk.org
There is a tutorial on the website for GTK+2.0 which is the newest version.

QT link
http://www.trolltech.com/developer/index.html
The documentation link is on this page

Both of these libraries should be included in your version of Linux, if it is relatively modern.
 
Old 05-30-2003, 05:28 AM   #8
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Note that those libraries are mainly for GUI building. If you want to play sounds you'd want SDL or something like that.

Alex
 
Old 08-01-2005, 08:45 AM   #9
sueisfine
Member
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 33

Rep: Reputation: 15
Topic is posted quite a long time ago, but I would like to request for general documentation on using header files.

I'm developing one small app for my school and have a problem that can be solved using device mapper headerfile ( /usr/include/libdevmapper.h ). But since it's only core skeleton of the solution, I don't know how to use those functions and data-types that are defined in this header file. I peeked into some app's that take advantage of that specific library, but they are rather advance for me to get information I need.

I have a quite basic knowledge of C, but I'm willing to learn more, if I can have good documentation.

So if you have good URL in your bookmarks or know any good sites, that I can use. Please share!
 
  


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
Including header files and source files for classes Feenix Programming 8 09-28-2005 10:53 AM
Linux kernel header files cranium2004 Programming 4 03-04-2005 04:41 AM
gcc header files and cpp files? EchO Linux - Software 3 03-01-2005 01:14 AM
how do i install linux header files jelgavchik Linux - General 2 01-02-2005 07:15 PM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM


All times are GMT -5. The time now is 07:20 AM.

Main Menu
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