unresolved external symbol while creating dll by Aspen Plus Simulation Engine because of missing IMSL library

unresolved external symbol while creating dll by Aspen Plus Simulation Engine because of missing IMSL library

Dear everyone 

     I am a new user of intel fortran compiler. I want to creat .dll by using Aspen Plus Simulation Engine. I also install Microsoft Visual Studio 2008 and Intel Visual Fortran Compiler V10.1.0.03 including to IMSL v7.0. I followed the way of Configuring for Use from Microsoft Visual Studio for linking the path to IMSL libraries. But I got the error which showed me that IMSL was not used. 

Here is the error I got.    

-------------------- mem.lnk ------------------------------
"membrane.obj"
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\atdms.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zemath.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zesqp.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zereport.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppmon.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pputil.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppupp.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zeftools.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zevaraccu.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppflash.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppexec.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zeshs.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pprxn.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppbase.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppeos.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zeuosutl.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zestreamu.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zeitutl.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pppces.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppstub.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zeusrutl.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pptgs.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\atdms2.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\aphier.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pptransport.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppelec.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pphysysprop.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppgamma.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\tabledatawrapper.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zeuser3.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zeratefrac.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pppoly.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zerplug.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zercstr.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zerbatch.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zeu3utils.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\zepml.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\aosbridge.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zeu3dl.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zeopi.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppncsolid.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\rtpdfutl.lib
C:\PROGRA~2\ASPENT~1\OOMFV8~1.0\\lib\oomfutils.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppada.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zerxrplus.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\ppfact.lib
C:\PROGRA~2\ASPENT~1\ASPENP~1.0\Engine\\lib\zeradfrac.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pptderefprop.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pol_emul.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pol_frad.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pol_ionc.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pol_segb.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pol_step.lib
C:\PROGRA~2\ASPENT~1\APRSYS~1.0\Engine\lib\pol_znat.lib
libifcoremd.lib
libifportmd.lib
libmmd.lib
msvcrt.lib
-------------------- mem.dyl ------------------------------
EXPORTS _FCNNG=_FCNNG@12
EXPORTS _FCNNG@12
EXPORTS _FCNJSG=_FCNJSG@16
EXPORTS _FCNJSG@16
EXPORTS _SFCRGE=_SFCRGE@124
EXPORTS _SFCRGE@124
EXPORTS _DNEQNSG.=_DNEQNSG.@32
EXPORTS _DNEQNSG.@32
EXPORTS _FCNSG.=_FCNSG.@16
EXPORTS _FCNSG.@16
EXPORTS _FCNSG=_FCNSG@16
EXPORTS _FCNSG@16
EXPORTS _DNEQNSG=_DNEQNSG@32
EXPORTS _DNEQNSG@32
EXPORTS _VISTCONG.=_VISTCONG.@16
EXPORTS _VISTCONG.@16
EXPORTS _VISTCONG=_VISTCONG@16
EXPORTS _VISTCONG@16
-------------------- Link command ------------------------------
link /DLL /nologo /out:"mem.dll" 
     /def:"mem.dyl" -nodefaultlib:libifcore.lib -nodefaultlib:libifport.lib -nodefaultlib:libm.lib -nodefaultlib:libifcoremt.lib -nodefaultlib:libmmt.lib
     -nodefaultlib:libc.lib @"mem.lnk"
-------------------- Link message ------------------------------
   Creating library mem.lib and object mem.exp
membrane.obj : error LNK2019: unresolved external symbol _DSET referenced in function _SFCRGE
membrane.obj : error LNK2019: unresolved external symbol _DIVPAG referenced in function _SFCRGE
membrane.obj : error LNK2019: unresolved external symbol _DNEQNF referenced in function _DNEQNSG
mem.dll : fatal error LNK1120: 3 unresolved externals
Link failure, status = 1120
asplink return code = 5

I am very proud if you would like to help me.

Say a lot of thank you to you all.

Niroj

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

In addition to specifying to the linker where to find IMSL libraries, you also need to specify which IMSL libraries should be searched. For example, imsl_dll.lib should perhaps be among the additional libraries to link. See your IMSL-7 documentation for details.

Please note that IMSL 7 isn't yet provided through Intel (that will change this week.)  If you have IMSL 7 now, you got it from Rogue Wave. The instructions in our article apply to the version of IMSL we supply and might not work with a different one.

That said, mecej4 is correct in that you also need to add something to tell the linker which IMSL libraries you want.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today