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;
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
add a comment |
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
add a comment |
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
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
14.04 apt gcc
edited Apr 13 '17 at 12:25
Community♦
1
1
asked Nov 8 '14 at 3:55
PhaniPhani
619
619
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Try the following steps:
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.
Install the following packages:
sudo apt-get install libc6-dev
sudo apt-get install gcc-multilibCreate a symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Try the following steps:
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.
Install the following packages:
sudo apt-get install libc6-dev
sudo apt-get install gcc-multilibCreate a symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
add a comment |
Try the following steps:
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.
Install the following packages:
sudo apt-get install libc6-dev
sudo apt-get install gcc-multilibCreate a symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
add a comment |
Try the following steps:
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.
Install the following packages:
sudo apt-get install libc6-dev
sudo apt-get install gcc-multilibCreate a symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
Try the following steps:
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.
Install the following packages:
sudo apt-get install libc6-dev
sudo apt-get install gcc-multilibCreate a symbolic link:
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
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
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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