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