[SOLVED] locating then right libarary GCC compiler
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.
There is some software that was developed on a fairly new linux (Centos 6.3) and now I am trying to compile it on a older version (Centos 5). I am getting a bunch of new warning messages on the old linux that I wasn't getting on the new one such as the following:
warning: converting from non-pointer type 'char' from NULL
warning: passing NULL to non-pointer argument 4 of...(one of the functions)
I found that the GCC compiler I am using on the older linux is version 4.1.2 while the newer linux is GCC version 4.4.6 could this be the problem for all these new messages?
Also, I am getting an error message that reads:
error: 'sched_getcpu' was not declared in this scope
Again I did not get this error on the newer linux. I think the problem might be that the older linux might not have sched.h file/library installed or maybe its not being properly linked(GCC problem again?) but I do not know how to verify this. (where would I go to see what libraries are included on the computer?)
Thanks for the response.
I do not know much about the yum command but the laptop I have to run the software (centos 5) does not have internet connections and I cannot get internet connection on it for security reasons. So I would have to download the gcc-4.4.7 onto a flash drive and then put it on the laptop. Could I install 4.4.7 on Centos 5?
I am looking at the Centos website and it looks like it is possible but I am looking for further information.
1) gcc44-4.4.7-1.el5*
2) libstdc++44-devel-4.4.7-1.el5*
3) gcc44-c++-4.4.7-1.el5*
...... Dependencies : (gcc-4.1.2, gcc-c++-4.1.2) libstdc++-4.1.2, gmp,
but I guess you already have those installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.