Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am a new user and I'm using Ubuntu 9.04 in my laptop. The C++ compiler that was installed by default is g++ 4.3.3.
But for some urgent cause I need to install g++ 3.4.4. I have to run some .cc code (ns-2.29 broadcast algorithms) which were written in g++ 3.4.4.
Could anyone please tell me how can I install g++ 3.4.4 and remove g++ 4.3.3?
I am a new user and I'm using Ubuntu 9.04 in my laptop. The C++ compiler that was installed by default is g++ 4.3.3.
But for some urgent cause I need to install g++ 3.4.4. I have to run some .cc code (ns-2.29 broadcast algorithms) which were written in g++ 3.4.4.
Could anyone please tell me how can I install g++ 3.4.4 and remove g++ 4.3.3?
Your help is really appreciated.
Thanks,
Suranjit
Here's the problem. If you succeeded in installing the old compiler, it wouldn't run. If it ran against all odds, it would not compile the target program for lack of legacy libraries. If it compiled the program against all odds, the program then wouldn't run.
The solution is to find an updated version of the original program's source code. I offer this advice after years of trying to provide legacy applications in the face of compiler changes that invalidated my source code.
Here's the problem. If you succeeded in installing the old compiler, it wouldn't run. If it ran against all odds, it would not compile the target program for lack of legacy libraries. If it compiled the program against all odds, the program then wouldn't run.
The solution is to find an updated version of the original program's source code. I offer this advice after years of trying to provide legacy applications in the face of compiler changes that invalidated my source code.
-->
Thank you for your suggestion. There are no updates for those codes and I tried to compile those codes with g++ 4.4.3 but unfortunately there were some errors such as "...... : error: expected `)' before ‘*’ token" but when I checked the code I was not able to find any bug.... Still now I am wondering how to fix those errors to run those codes !!!!!!!!!
-->
Thank you for your suggestion. There are no updates for those codes and I tried to compile those codes with g++ 4.4.3 but unfortunately there were some errors such as "...... : error: expected `)' before ‘*’ token" but when I checked the code I was not able to find any bug.... Still now I am wondering how to fix those errors to run those codes !!!!!!!!!
If you are determined to compile this application and if there really are no updates by the originator, you will have to edit the source to make it comply with current standards.
Most such errors are pretty easy to sort out, especially is you understand C or C++ as applicable.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
You can have as many compilers as you want, but Ubuntu 9.04 has
a limited selection compared to earlier versions.
'g++-4.1' can be installed from the repo.
'g++-3.4' is available from "hardy-updates" http://packages.ubuntu.com/hardy-updates/g++-3.4
Thanks all for your quick replies.
I discussed with my Prof and he suggested me to modify those code instead of spending my time on installing g++-3.4.4, because it could generate other problems (he wrote those code for ns-2.29 and it was compiled on g++ 3.4.4). I hope that I will be able to modify those codes soon.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.