Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28991 Discussions

make static lib using option '-o -staticlib -c'

dpluto
Beginner
503 Views
It's about usingoption '-o -staticlib -c' to make static lib on mac os.
command line like this:
'ifort -o lib.a -staticlib -c source1.f90 source2.f90 ... sourcex.f90'
error infor:
'ifort: command line error: multiple sources not allowed with -o option'
How to deal with the problem? and how to make the static lib on mac os?
Thank you!
0 Kudos
2 Replies
Lorri_M_Intel
Employee
503 Views

Take out the "-c"

--Lorri

0 Kudos
dpluto
Beginner
503 Views
It seems work, but there is a warning said "libtool: same member name(for_main.o) in output file used for input files". How to deal with this problem? Thank you!
0 Kudos
Reply