- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
My code is in Fortran90 so I have included the IMSL libraries using USE NUMERICAL_LIBRARIES . I removed the existing external lines from my code. I am attempting to compile my source code and the various functions in the IMSL library into a DLL. The compilation is successful, but when I debug the prgram, when ever I reach a function call in the IMSL library it asks me for the file. For example, I use the DZBREN subroutine, when I execute that line of code it asks me for DZBREN.FOR.
To the best of my knowledge the compiler and linker are properly setup. I added the 3 module references under Project->Setting->Link tab, input(imsl.lib imsls_err.lib imslmpistub.lib), and checked the paths under tools->options, just as the help files suggest.
Am I missing a step to get it working ??
Here is a small section of code, thanks for any possible help on the matter,
DOUBLE PRECISION FUNCTION OXIDE()
USE NUMERICAL_LIBRARIES
!SETUP SOME COMMON BLOCKS, READ SOME FILES ETC
ANS = CALC()
END FUNCTION OXIDE
DOUBLE PRECISION FUNCTION CALC()
!EXTERNAL GF
!VARIABLES ARE SETUP, I HAVE EXCLUDED THEM.
CALL DZBREN(GF,ERRABS,ERRREL,XM,XP,MAXFN)
CALC =XP
END FUNCTION CALC
My code is in Fortran90 so I have included the IMSL libraries using USE NUMERICAL_LIBRARIES . I removed the existing external lines from my code. I am attempting to compile my source code and the various functions in the IMSL library into a DLL. The compilation is successful, but when I debug the prgram, when ever I reach a function call in the IMSL library it asks me for the file. For example, I use the DZBREN subroutine, when I execute that line of code it asks me for DZBREN.FOR.
To the best of my knowledge the compiler and linker are properly setup. I added the 3 module references under Project->Setting->Link tab, input(imsl.lib imsls_err.lib imslmpistub.lib), and checked the paths under tools->options, just as the help files suggest.
Am I missing a step to get it working ??
Here is a small section of code, thanks for any possible help on the matter,
DOUBLE PRECISION FUNCTION OXIDE()
USE NUMERICAL_LIBRARIES
!SETUP SOME COMMON BLOCKS, READ SOME FILES ETC
ANS = CALC()
END FUNCTION OXIDE
DOUBLE PRECISION FUNCTION CALC()
!EXTERNAL GF
!VARIABLES ARE SETUP, I HAVE EXCLUDED THEM.
CALL DZBREN(GF,ERRABS,ERRREL,XM,XP,MAXFN)
CALC =XP
END FUNCTION CALC
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You'll see this when you step into the IMSL routine, because the debugger wants to present the IMSL source code. Since that source code is not available, just click Cancel to that dialog box. Better, step over IMSL calls, not into them.
You're already linking fine.
Steve
You're already linking fine.
Steve

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