LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling header file and souce files (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-header-file-and-souce-files-933981/)

hmtng 03-12-2012 12:53 AM

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

Satyaveer Arya 03-12-2012 12:59 AM

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.

knudfl 03-12-2012 01:34 AM

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.


.

hmtng 03-22-2012 02:28 AM

thanks Knudfi.. for detail explanations..


All times are GMT -5. The time now is 03:35 PM.