Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Calling a dll from a dll

$
0
0

 I need to break a library of functions into a number of separate dlls.

How do I call a dll from within a dll?

Can I do it within the same solution?

Do I need to specify a library for the linker?

Current attempt:

!DEC$ ATTRIBUTES DLLEXPORT::G_Trend
!DEC$ ATTRIBUTES ALIAS:'G_Trend' :: G_Trend
!DEC$ ATTRIBUTES DLLIMPORT, ALIAS: 'G_Filter' ::G_Filter

( blah, blah, blah)

 Call G_Filter(pdlen, lg, psh, lnc, tmp1)

gives the error

>G_Trend.obj : error LNK2019: unresolved external symbol __imp_G_Filter referenced in function G_Trend
2>Debug\G_Trend.dll : fatal error LNK1120: 1 unresolved externals

The G_Filter function compiles and works great.( Tested by calling with netlink in mathematica)

G_Filter and G_Trend are in different projects under the same solution.

Thanks

Frank

 

 

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>