Re: Calling fortran function or procedure from a c main
If your project is plain C, it may be simpler to try ifort as the linking command. for_cpystr comes from one of the libraries supplied with ifort. ifort would choose the correct libraries from that group. MT libraries are required for thread safety; if you don't use threading or OpenMP, they may not be the best choice.