i found something similar here
with compaq fortran, so i corrected my C++ code like that
extern 'C'
{
double __declspec(dllimport) __stdcall BZ_Y(Points* bz,double x);
}
void test()
{
Points* bz = new Points[4];
double x = 0.1;
x = BZ_Y(bz,x);
}
and now i have just one link error:
(http://www.thescripts.com/forum/thread280324.html)
with compaq fortran, so i corrected my C++ code like that
extern 'C'
{
double __declspec(dllimport) __stdcall BZ_Y(Points* bz,double x);
}
void test()
{
Points* bz = new Points[4];
double x = 0.1;
x = BZ_Y(bz,x);
}
and now i have just one link error:
[quote:f5593af1c5]Inter29.obj : error LNK2001: unresolved external symbol __imp__BZ_Y@12
i tried to put
double precision function Bz_Y(bz, x)
!DEC$ ATTRIBUTES DLLEXPORT::Bz_Y
!DEC$ ATTRIBUTES C, ALIAS: 'BZ_Y@12':: Bz_Y
use Bezier
end function
but it does not work 😢
it seems that the problem is in how to make the function [color=red:f5593af1c5]Bz_Y[/color:f5593af1c5] exported as [color=red:f5593af1c5]BZ_Y@12[/color:f5593af1c5]