How to add C libraries in Ubuntu

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








up vote
1
down vote

favorite












I want to add Arduino-serial-lib.h in order to achieve serial communication between my system and Arduino. How can I add this library in my system?










share|improve this question



























    up vote
    1
    down vote

    favorite












    I want to add Arduino-serial-lib.h in order to achieve serial communication between my system and Arduino. How can I add this library in my system?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I want to add Arduino-serial-lib.h in order to achieve serial communication between my system and Arduino. How can I add this library in my system?










      share|improve this question















      I want to add Arduino-serial-lib.h in order to achieve serial communication between my system and Arduino. How can I add this library in my system?







      programming serial-port arduino






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 8:14









      Melebius

      3,78841636




      3,78841636










      asked Mar 28 at 6:48









      devansh ahuja

      61




      61




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          Just download it to your directory project. You could use gcc include directive to set the specific path to that library: https://www.rapidtables.com/code/linux/gcc/gcc-i.html.



          If you are using the Eclipse or any other IDE you could change compiler (includes) options.






          share|improve this answer



























            up vote
            0
            down vote













            To add your file to the system add it to /usr/include as root (sudo)






            share|improve this answer
















            • 2




              /usr/local/include should be preferred for libraries not managed by the OS.
              – Melebius
              Mar 28 at 13:29










            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1019857%2fhow-to-add-c-libraries-in-ubuntu%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Just download it to your directory project. You could use gcc include directive to set the specific path to that library: https://www.rapidtables.com/code/linux/gcc/gcc-i.html.



            If you are using the Eclipse or any other IDE you could change compiler (includes) options.






            share|improve this answer
























              up vote
              0
              down vote













              Just download it to your directory project. You could use gcc include directive to set the specific path to that library: https://www.rapidtables.com/code/linux/gcc/gcc-i.html.



              If you are using the Eclipse or any other IDE you could change compiler (includes) options.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Just download it to your directory project. You could use gcc include directive to set the specific path to that library: https://www.rapidtables.com/code/linux/gcc/gcc-i.html.



                If you are using the Eclipse or any other IDE you could change compiler (includes) options.






                share|improve this answer












                Just download it to your directory project. You could use gcc include directive to set the specific path to that library: https://www.rapidtables.com/code/linux/gcc/gcc-i.html.



                If you are using the Eclipse or any other IDE you could change compiler (includes) options.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 7:59









                Null0007

                494




                494






















                    up vote
                    0
                    down vote













                    To add your file to the system add it to /usr/include as root (sudo)






                    share|improve this answer
















                    • 2




                      /usr/local/include should be preferred for libraries not managed by the OS.
                      – Melebius
                      Mar 28 at 13:29














                    up vote
                    0
                    down vote













                    To add your file to the system add it to /usr/include as root (sudo)






                    share|improve this answer
















                    • 2




                      /usr/local/include should be preferred for libraries not managed by the OS.
                      – Melebius
                      Mar 28 at 13:29












                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    To add your file to the system add it to /usr/include as root (sudo)






                    share|improve this answer












                    To add your file to the system add it to /usr/include as root (sudo)







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 28 at 8:28









                    Romain L.

                    1




                    1







                    • 2




                      /usr/local/include should be preferred for libraries not managed by the OS.
                      – Melebius
                      Mar 28 at 13:29












                    • 2




                      /usr/local/include should be preferred for libraries not managed by the OS.
                      – Melebius
                      Mar 28 at 13:29







                    2




                    2




                    /usr/local/include should be preferred for libraries not managed by the OS.
                    – Melebius
                    Mar 28 at 13:29




                    /usr/local/include should be preferred for libraries not managed by the OS.
                    – Melebius
                    Mar 28 at 13:29

















                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1019857%2fhow-to-add-c-libraries-in-ubuntu%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Which professions warranted travel in Medieval times?

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error