LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2004, 01:36 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
are header files the souce code?


Are the header files, files.h, the actual source code. Is everything in /usr/includes my soure code?
 
Old 04-04-2004, 01:45 PM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
The header files contain just enough of the code to tell the compiler what functions, classes, etc. it will have access to when it links to the libraries. You need the libraries as well which contain the actual compiled code. /usr/include is the default search path gcc uses when it looks for header files when it compiles code.

In short: No
 
Old 02-16-2005, 09:49 AM   #3
rhoyerboat
Member
 
Registered: Feb 2005
Posts: 40

Rep: Reputation: 15
quick question, although late to the thread

how do i tell gcc to use a different search path to the headers/libs?
gcc -B /srcBSD/ -o <blah> <blah>
doesnt seem to be doing what i want. in fact it doesnt affect the output of the compile at all

(this was the only relevant thread i found with the search tool)
pax
 
Old 02-16-2005, 10:24 AM   #4
anindyanuri
Member
 
Registered: Jan 2005
Location: India
Distribution: Kubuntu Gutsy
Posts: 450

Rep: Reputation: 30
nhs has explained the technicalities very clear.
for better understanding you may take an example. In this website we are logging into forums......and we are getting an idea about the forum from the forum name? am i correct? are we not getting enough idea about the forum from the forum name? header files are also similar. the compiler understand the way how it will be compiled, from the header file. clear?

Last edited by anindyanuri; 02-16-2005 at 10:25 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
Iwlist souce code David_Moses Linux - Software 2 04-07-2005 03:23 PM
Trying to compile souce code that came with AUP book.... Scrag Programming 4 11-16-2004 09:24 PM
I cannot compile my souce code created by Glade on redhat9 msramachandran Programming 0 06-02-2004 02:13 AM
Help - rm souce code kilaabe Linux - General 1 11-14-2003 08:22 PM
Compile problem with souce code neilcpp Linux - Software 3 10-18-2003 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:26 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