- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a C library that has been set up with a -iface:cvf type interface. I.e. if I compile the FORTRAN with -iface:cvf then it link correctly. Unfortunately in the FORTRAN I have calls to other C and FORTRAN librariesthat do not use the cvf calling convention.
From what I have read I need to set up an interface block with a CFV type compiler directive. I.e. call some routines with thecvf type convention. Something like
interface
subroutine gm_start_cad(igeofile,lugeo_in,isemod,split2)
c CDEC$ ATTRIBUTES CVF :: gm_start_cad
character*80 igeofile
integer lugeo_in, isemod
logical split2
end subroutine gm_start_cad
end interface
Unfortunately the compiler does not recognise the CVF option. I have tried various other combinations (DECORATE, ALIAS, STDCALL) but cannot get it to link. Does anyone know what set of directives I need to mimick the cvf convention? Or is there another way of doing this?
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »