LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2012, 12:53 AM   #1
hmtng
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
compiling header file and souce files


hi all,

i am a newbie in linux..
anyone can help how to find out the meaning of -I. in compiling and linking the header file and source file ==> g++ -I. file1.cpp file2.cpp
 
Old 03-12-2012, 12:59 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Why don't you check the man page of g++ instead of asking here? First go through the man page, if you don't understand there then ask here.
 
Old 03-12-2012, 01:34 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,696

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
Welcome to LQ. .. ..


-I<dir> : Tells where to find the headers.
Example : -I/usr/include -I.

-I. is the current directory.
One period ( . ) means the current directory.


.

Last edited by knudfl; 03-13-2012 at 02:19 AM.
 
Old 03-22-2012, 02:28 AM   #4
hmtng
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up

thanks Knudfi.. for detail explanations..
 
  


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
How to check missing header files included from another header file adisan82 Linux - Software 1 01-28-2011 03:57 AM
while compiling c programme it's showing errors in header files mprabu20 Programming 1 04-08-2006 02:07 AM
Compiling C++ Header Files ?? JinBaba Programming 3 07-20-2005 03:23 AM
are header files the souce code? shanenin Linux - Software 3 02-16-2005 10:24 AM
compiling header files with anjuta santiagom5 Linux - Software 7 01-30-2004 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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