Dear All,
I need link a fortran code with four external libraries (lib1.lib, lib2.lib, lib3.lib lib4.lib). I have no problem linking these libraries with a c code (main.c) by using the following command:
icl main.c lib1.lib lib2.lib lib3.lib lib4.lib
An executable named main.exe will be generated. However, when I convert main.c to two equivalent files main.f and s.c. I used the following command to generate s.obj
icl /c s.c
I use the following for linking but did not work.
ifort s.obj main.f lib1.lib lib2.lib lib3.lib lib4.lib
It complains the the function calls in main.f (which should be in the four libraries) are not found. What command should I use for linking? I am sorry that I can not provide more details about files and libraries as these are provided to me by another company. I hope these question can be answered without such details.
Thanks a lot!