Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29302 Discussions

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

dpluto
Beginner
680 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
680 Views

Take out the "-c"

--Lorri

0 Kudos
dpluto
Beginner
680 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