define include directory path (for *.h) CentOS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I was reading these questions https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux



https://unix.stackexchange.com/a/45106/235247



I'm compiling gmp



./configure --prefix=/usr/local/Custom/gmp


and installing producing three folders.



include, lib and share



In the case, bin



export PATH=$PATH:/usr/local/Custom/SOMEPROGRAM/bin


The lib folder can be added using



export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Custom/gmp/lib


My question, Is there some PATH_VARIABLE for include different folders (with *.h files)?



export PATH_VARIABLE=$PATH_VARIABLE:/usr/local/Custom/gmp/include






share|improve this question
















  • 1




    stackoverflow.com/questions/558803/…
    – Chepe Questn
    Dec 6 '17 at 1:16














up vote
1
down vote

favorite












I was reading these questions https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux



https://unix.stackexchange.com/a/45106/235247



I'm compiling gmp



./configure --prefix=/usr/local/Custom/gmp


and installing producing three folders.



include, lib and share



In the case, bin



export PATH=$PATH:/usr/local/Custom/SOMEPROGRAM/bin


The lib folder can be added using



export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Custom/gmp/lib


My question, Is there some PATH_VARIABLE for include different folders (with *.h files)?



export PATH_VARIABLE=$PATH_VARIABLE:/usr/local/Custom/gmp/include






share|improve this question
















  • 1




    stackoverflow.com/questions/558803/…
    – Chepe Questn
    Dec 6 '17 at 1:16












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I was reading these questions https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux



https://unix.stackexchange.com/a/45106/235247



I'm compiling gmp



./configure --prefix=/usr/local/Custom/gmp


and installing producing three folders.



include, lib and share



In the case, bin



export PATH=$PATH:/usr/local/Custom/SOMEPROGRAM/bin


The lib folder can be added using



export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Custom/gmp/lib


My question, Is there some PATH_VARIABLE for include different folders (with *.h files)?



export PATH_VARIABLE=$PATH_VARIABLE:/usr/local/Custom/gmp/include






share|improve this question












I was reading these questions https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux



https://unix.stackexchange.com/a/45106/235247



I'm compiling gmp



./configure --prefix=/usr/local/Custom/gmp


and installing producing three folders.



include, lib and share



In the case, bin



export PATH=$PATH:/usr/local/Custom/SOMEPROGRAM/bin


The lib folder can be added using



export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Custom/gmp/lib


My question, Is there some PATH_VARIABLE for include different folders (with *.h files)?



export PATH_VARIABLE=$PATH_VARIABLE:/usr/local/Custom/gmp/include








share|improve this question











share|improve this question




share|improve this question










asked Dec 6 '17 at 0:08









Chepe Questn

336




336







  • 1




    stackoverflow.com/questions/558803/…
    – Chepe Questn
    Dec 6 '17 at 1:16












  • 1




    stackoverflow.com/questions/558803/…
    – Chepe Questn
    Dec 6 '17 at 1:16







1




1




stackoverflow.com/questions/558803/…
– Chepe Questn
Dec 6 '17 at 1:16




stackoverflow.com/questions/558803/…
– Chepe Questn
Dec 6 '17 at 1:16










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










Set C_INCLUDE_PATH for C header files or CPLUS_INCLUDE_PATH for C++ header files or CPATH for both



There's more info here, or read man gcc






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409061%2fdefine-include-directory-path-for-h-centos%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    Set C_INCLUDE_PATH for C header files or CPLUS_INCLUDE_PATH for C++ header files or CPATH for both



    There's more info here, or read man gcc






    share|improve this answer
























      up vote
      2
      down vote



      accepted










      Set C_INCLUDE_PATH for C header files or CPLUS_INCLUDE_PATH for C++ header files or CPATH for both



      There's more info here, or read man gcc






      share|improve this answer






















        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        Set C_INCLUDE_PATH for C header files or CPLUS_INCLUDE_PATH for C++ header files or CPATH for both



        There's more info here, or read man gcc






        share|improve this answer












        Set C_INCLUDE_PATH for C header files or CPLUS_INCLUDE_PATH for C++ header files or CPATH for both



        There's more info here, or read man gcc







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 6 '17 at 0:18









        PiedPiper

        591210




        591210



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409061%2fdefine-include-directory-path-for-h-centos%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay