- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello folks!
I'm trying for static lib making in MACOSX as mylib XCODE project(command line c tool).
I have an separate folder for fortran modules(named as /Users/me/Documents/mylib/modules)
and fortran sorce files in the 'mylib' folder.
I was made an additioonal options for mylib project: -o mylib.a -staticlib
and additional include directories /Users/me/Documents/myilb/modules.
However, when compiling the following type of the subrotine(s)
SUBROUTINE MY_SUBROUTINE()
USE MY_MODULE
............
END SUBROUTINE
the following error is occur,
"can't find my_module.f90"
When this program will be written an another manner ,
INCLUDE "MY_MODULE.F90"
SUBROUTINE MY_SUBROUTINE()
USE MY_MODULE
.............
END SUBROUTINE
NO errors found!
What's a problem friends?
THANK YOU ALL.
P.S. Command line
ifort -o mylib.a -staticlib -I/Users/me/Documents/mylib/modules
I'm trying for static lib making in MACOSX as mylib XCODE project(command line c tool).
I have an separate folder for fortran modules(named as /Users/me/Documents/mylib/modules)
and fortran sorce files in the 'mylib' folder.
I was made an additioonal options for mylib project: -o mylib.a -staticlib
and additional include directories /Users/me/Documents/myilb/modules.
However, when compiling the following type of the subrotine(s)
SUBROUTINE MY_SUBROUTINE()
USE MY_MODULE
............
END SUBROUTINE
the following error is occur,
"can't find my_module.f90"
When this program will be written an another manner ,
INCLUDE "MY_MODULE.F90"
SUBROUTINE MY_SUBROUTINE()
USE MY_MODULE
.............
END SUBROUTINE
NO errors found!
What's a problem friends?
THANK YOU ALL.
P.S. Command line
ifort -o mylib.a -staticlib -I/Users/me/Documents/mylib/modules
Link Copied
0 Replies

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