I am new to the GNU-Linux world. I have installed on my Linux machine gcc-4.2.4 and I would like to convert back to gcc-4.2.0 beacuse of compatibility problems with compiling S-functions in Matlab. Is there an easy way to do this?
Thanks,
The short answer: No
The long answer: Because of all the libraries involved, I don't think this will be a very good idea. The problem may be that some of your shared object libraries are not being found by the compiler at run time. There is a linker that can make this happen. If your are logged in as root, type this command "ldconfig -v" and see if that gets you anywhere. If not, it would be helpful to know the error messages you are getting rather than just saying it is not compatible. I don't mean to harsh your mellow but the reason you haven't had a lot of hits on this thread is because unlike the world of windoze, we seldom suggest reinstalling or rebooting as a solution to any problem. Rather, define the symptoms, then determine the cause by reading error messages and logs. This is the basic information you or anybody you enlist to help you needs to come up with a solution.
If you statically link everything, it won't be dependent upon the DLLs and you can run it anywhere forever. I statically linked a gcc 3.x program and I can run it on RH5 (gcc 2.x), RH9 (gcc 3.x) and FC10 (gcc 4.x).
Having said that, I don't know if s-functions allow static linking.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.