- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Take out the "-c"
--Lorri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page