How gfortran build a .lib fortran file?

dealpro JimChan00@gmail.com
Sun Dec 14 01:56:00 GMT 2008


I was using absoft to build datamodel.f in a project to a fortran static
library datamodel.lib which would be used by my C++ code. I recently switch
to gfortran to compile with a myfile.o is OK but when link the .o to a .lib
file showing:

gfortran -static -L/Users/DEVELOP/finclude -o "datamodel.lib" 
./datarmodel.o   
collect2: ld returned 1 exit status
ld_classic: can't locate file for: -lcrt0.o

There ARE some C functions' call inside datamodel.f

Searched to this site and hopefully can get help with it. Thanks all~
-- 
View this message in context: http://www.nabble.com/How-gfortran-build-a-.lib-fortran-file--tp20996516p20996516.html
Sent from the gcc - fortran mailing list archive at Nabble.com.



More information about the Fortran mailing list