Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Ugly situation

rahzan
New Contributor I
655 Views
The cvf DLL has a questionable routine wrapped in a execption catching c-wrapper. Is there a way to export the c-wrapper to the outside world also?

yes, another cvf "wrapper" can wrap the c-wrapper and I know how to export that, but that trick is altogether too ugly.

Will appreciate any hints.
Tim
0 Kudos
4 Replies
Jugoslav_Dujic
Valued Contributor II
655 Views
Should be possible. Either use _declspec(dllexport) in the code (immediately after type-spec), or create a .DEF file and add it to your project:
EXPORTS
MyCWrapper = _MyCWrapper@40
where the former is exported name (as in ALIAS) and the latter is mangled name.

Jugoslav
0 Kudos
rahzan
New Contributor I
655 Views
Thank you,
__declspec(dllexport)
is the way to go.
0 Kudos
gfthomas8
Novice
655 Views
Jugoslav is right but indulge me, please, what do you expect to achieve by exporting the wrapper?

Ciao,
Gerry T.
0 Kudos
rahzan
New Contributor I
655 Views
It is a means to directly calling an otherwise exported routine in the DLL (from the outside) with exception catching protection.

Tim
0 Kudos
Reply