- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I have some fortran routines that I'd like to call from C. I'm having trouble finding how to create a shared libarary and how to link to that library from C.
using Redhat Linux 7.3 Intel Fortran 7.0
링크가 복사됨
1 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
You might like to check the thread from anuraag in this forum. Then, see the Fortran User's Guide, "Libraries" and "Mixing C and Fortran" sections, and also the man pages for ld for how to use -shared to create a shared object.
Martyn
Martyn