ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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 trying to execute a fortran program but I get an error (most likely) after the program gets compiled. I am using the pgf90 to compile the program. Since it is a collection of programs, I have a makefile and then use the 'make' command to build the program:
I think that the -lc is telling the linker (/usr/bin/ld) to load a library name "libc.so" So (if I'm correct) you need to install that library. On most system, libc.so would be a C library, and I suspect that somewhere in your FORTRAN code, someone has embedded some C code.
Hum. Well, if you're the only on using it, you can install the gfortran package and libraries in your home directory. But getting it to work would take quite a while.
So, do you have pgcc installed on your system? (I haven't used the Portland Group's compilers, but - from the pgf90 man page - I formed the impression that the pgf90 was a FORTRAN -> C converter preprocessor, and that the pgcc C compiler might be needed to compile the generated code. The C library, if my above speculation is correct, would/should have been installed with the pgcc compiler.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.