Shared Objects - porting from W(DLL)

Shared Objects - porting from W(DLL)

Dear All,
I would be grateful for some confirmation/explanation/education on how to correctly port set of dll(s) from Windows to Linux (run on EM64T). All routines are in Fortran. We're using RH Linux and IVF 9.0.
The edited versions (test routines) are shown below:
Callee--------------------------------------------
SUBROUTINE SManager (status)
!DEC$ ATTRIBUTES ALIAS : "SManager" :: SManager
IMPLICIT NONE
integer :: status
! code here
status=100
END SUBROUTINE SManager
----------------------------------------------------
Caller---------------------------------------------
PROGRAM YAPTest
!DEC$ ATTRIBUTES ALIAS : "SManager" :: SManager
IMPLICIT NONE
integer :: status
external :: SManager ! ??????????
! optionally DLL INTERFACE goes next
status=0
CALL SManager(status)
print *, status

END PROGRAM YAPTest
!---------------------------------------------------
The shared object is compiled (with ifort -shared and -fPIC options with no problem and *.so is produced. The problem starts when we try to build the Caller. We already tried several combinations of adding path the LD_LIBRARY_PATH (as written in the doc) etc. however always get error that reference to SManager is undefined.

How to correctly build the test and make it working (what should we add on the caller side)?
A.

Message Edited by ArturGuzik on 05-25-200610:38 PM

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.