Using gcc 3.4 on Ubuntu 14.04Old version of gcc for new UbuntuC compiler cannot create excecutablesHow do you build older gcc versions? Errors about crti.o not being foundgcc no longer works after upgradeProblem with /usr/bin/ld: main.o: undefined reference to symbol 'exp@@GLIBC_2.2.5'diff between x86_64-linux-gnu-gcc and plain old gcc?C compiler cannot create excecutablesmore than one version of gcc installedg++ gcc include files not foundCompilation errors in Ubuntu 18.04 LTS for a QT-based projectgcc -Hello.s Problemld -lcufft cannot find

Can you keep a readied action even through incapacitation?

What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?

Why don't I have ground wiring on any of my outlets?

Are there mythical creatures in the world of Game of Thrones?

Singlequote and backslash

Is the capacitor drawn or wired wrongly?

What if you don't bring your credit card or debit for incidentals?

How much current can Baofeng UV-5R provide on +V pin?

Different PCB color (is it a different material?)

How can I grammatically understand "Wir über uns"?

Could a guilty Boris Johnson be used to cancel Brexit?

What are the problems in teaching guitar via Skype?

Is it possible to kill all life on Earth?

Cryptography and patents

Can an old DSLR be upgraded to match modern smartphone image quality

What do you call the small burst of laugh that people let out when they want to refrain from laughing, but can't?

Can a helicopter mask itself from radar?

Creating Fictional Slavic Place Names

Why does my electric oven present the option of 40A and 50A breakers?

Accidentally cashed a check twice

Estimate related to the Möbius function

Is it legal in the UK for politicians to lie to public for political gain?

Order by does not work as I expect

What is the most important characteristic of New Weird as a genre?



Using gcc 3.4 on Ubuntu 14.04


Old version of gcc for new UbuntuC compiler cannot create excecutablesHow do you build older gcc versions? Errors about crti.o not being foundgcc no longer works after upgradeProblem with /usr/bin/ld: main.o: undefined reference to symbol 'exp@@GLIBC_2.2.5'diff between x86_64-linux-gnu-gcc and plain old gcc?C compiler cannot create excecutablesmore than one version of gcc installedg++ gcc include files not foundCompilation errors in Ubuntu 18.04 LTS for a QT-based projectgcc -Hello.s Problemld -lcufft cannot find






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















By exactly following this post, I was able to install gcc 3.4 on a fresh install of Ubuntu 14.04. But, when I try to compile a program, it fails with the following error:



/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status


I've looked at this answer and installed build-essential but that did not resolve the issue. I still get the same error.



Also, I installed the dependencies for g++-3.4 before installing it:



sudo apt-get build-dep g++-3.4


UPDATE:



Trying gcc-3.4 -B/usr/lib/x86_64-linux-gnu hello.c removes the first two errors.



/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status


UPDATE 2:



I read this post and tried it out on my system like below but it did not help:



gcc-3.4 -B /usr/lib/x86_64-linux-gnu -L /usr/lib/gcc/x86_64-linux-gnu/3.4.6/ hello.c









share|improve this question






























    1















    By exactly following this post, I was able to install gcc 3.4 on a fresh install of Ubuntu 14.04. But, when I try to compile a program, it fails with the following error:



    /usr/bin/ld: cannot find crt1.o: No such file or directory
    /usr/bin/ld: cannot find crti.o: No such file or directory
    /usr/bin/ld: cannot find -lgcc_s
    collect2: ld returned 1 exit status


    I've looked at this answer and installed build-essential but that did not resolve the issue. I still get the same error.



    Also, I installed the dependencies for g++-3.4 before installing it:



    sudo apt-get build-dep g++-3.4


    UPDATE:



    Trying gcc-3.4 -B/usr/lib/x86_64-linux-gnu hello.c removes the first two errors.



    /usr/bin/ld: cannot find -lgcc_s
    collect2: ld returned 1 exit status


    UPDATE 2:



    I read this post and tried it out on my system like below but it did not help:



    gcc-3.4 -B /usr/lib/x86_64-linux-gnu -L /usr/lib/gcc/x86_64-linux-gnu/3.4.6/ hello.c









    share|improve this question


























      1












      1








      1


      1






      By exactly following this post, I was able to install gcc 3.4 on a fresh install of Ubuntu 14.04. But, when I try to compile a program, it fails with the following error:



      /usr/bin/ld: cannot find crt1.o: No such file or directory
      /usr/bin/ld: cannot find crti.o: No such file or directory
      /usr/bin/ld: cannot find -lgcc_s
      collect2: ld returned 1 exit status


      I've looked at this answer and installed build-essential but that did not resolve the issue. I still get the same error.



      Also, I installed the dependencies for g++-3.4 before installing it:



      sudo apt-get build-dep g++-3.4


      UPDATE:



      Trying gcc-3.4 -B/usr/lib/x86_64-linux-gnu hello.c removes the first two errors.



      /usr/bin/ld: cannot find -lgcc_s
      collect2: ld returned 1 exit status


      UPDATE 2:



      I read this post and tried it out on my system like below but it did not help:



      gcc-3.4 -B /usr/lib/x86_64-linux-gnu -L /usr/lib/gcc/x86_64-linux-gnu/3.4.6/ hello.c









      share|improve this question
















      By exactly following this post, I was able to install gcc 3.4 on a fresh install of Ubuntu 14.04. But, when I try to compile a program, it fails with the following error:



      /usr/bin/ld: cannot find crt1.o: No such file or directory
      /usr/bin/ld: cannot find crti.o: No such file or directory
      /usr/bin/ld: cannot find -lgcc_s
      collect2: ld returned 1 exit status


      I've looked at this answer and installed build-essential but that did not resolve the issue. I still get the same error.



      Also, I installed the dependencies for g++-3.4 before installing it:



      sudo apt-get build-dep g++-3.4


      UPDATE:



      Trying gcc-3.4 -B/usr/lib/x86_64-linux-gnu hello.c removes the first two errors.



      /usr/bin/ld: cannot find -lgcc_s
      collect2: ld returned 1 exit status


      UPDATE 2:



      I read this post and tried it out on my system like below but it did not help:



      gcc-3.4 -B /usr/lib/x86_64-linux-gnu -L /usr/lib/gcc/x86_64-linux-gnu/3.4.6/ hello.c






      14.04 apt gcc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:25









      Community

      1




      1










      asked Nov 8 '14 at 3:55









      PhaniPhani

      619




      619




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Try the following steps:




          1. Run the following commands:



            LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
            export LIBRARY_PATH


          This will eliminate the need to explicitly define the path whenever the C program is compiled.




          1. Install the following packages:



            sudo apt-get install libc6-dev
            sudo apt-get install gcc-multilib



          2. Create a symbolic link:



            sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64






          share|improve this answer

























            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            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%2f547048%2fusing-gcc-3-4-on-ubuntu-14-04%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Try the following steps:




            1. Run the following commands:



              LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
              export LIBRARY_PATH


            This will eliminate the need to explicitly define the path whenever the C program is compiled.




            1. Install the following packages:



              sudo apt-get install libc6-dev
              sudo apt-get install gcc-multilib



            2. Create a symbolic link:



              sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64






            share|improve this answer





























              0














              Try the following steps:




              1. Run the following commands:



                LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
                export LIBRARY_PATH


              This will eliminate the need to explicitly define the path whenever the C program is compiled.




              1. Install the following packages:



                sudo apt-get install libc6-dev
                sudo apt-get install gcc-multilib



              2. Create a symbolic link:



                sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64






              share|improve this answer



























                0












                0








                0







                Try the following steps:




                1. Run the following commands:



                  LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
                  export LIBRARY_PATH


                This will eliminate the need to explicitly define the path whenever the C program is compiled.




                1. Install the following packages:



                  sudo apt-get install libc6-dev
                  sudo apt-get install gcc-multilib



                2. Create a symbolic link:



                  sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64






                share|improve this answer















                Try the following steps:




                1. Run the following commands:



                  LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
                  export LIBRARY_PATH


                This will eliminate the need to explicitly define the path whenever the C program is compiled.




                1. Install the following packages:



                  sudo apt-get install libc6-dev
                  sudo apt-get install gcc-multilib



                2. Create a symbolic link:



                  sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 29 '18 at 11:41









                galoget

                2,0582920




                2,0582920










                answered Nov 15 '14 at 18:01









                Rohith MadhavanRohith Madhavan

                6,92122042




                6,92122042



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f547048%2fusing-gcc-3-4-on-ubuntu-14-04%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?