Re: error LNK2001: unresolved external symbol
On 29 f=E9v, 12:06, "Tom Serface" <tom.nos...@camaswood.com> wrote:
Here are some links to similar conversations that may lead you to a
solution:
http://www.thescripts.com/forum/thread280324.htmlhttp://softwarecommunity.=
intel.com/isn/Community/en-US/forums/post/30...http://msdn2.microsoft.com/en=
-us/library/k2f5w4h3(VS.80).aspx
Tom
"Simply_Red" <Simply.Re...@gmail.com> wrote in message
news:aa46299a-d3c5-4d5b-8036-f0fefc6fc121@s37g2000prg.googlegroups.com...
On 21 f=E9v, 16:27, Simply_Red <Simply.Re...@gmail.com> wrote:
On 21 f=E9v, 16:21, "AliR \(VC++ MVP\)" <A...@online.nospam> wrote:
Did you put a extern "C" around the function declaration?
this might
help:http://www.physiology.wisc.edu/comp/docs/notes/not017.html
AliR.
"Simply_Red" <Simply.Re...@gmail.com> wrote in message
news:22f06add-320d-498e-8e63-094a45f81bd5@e6g2000prf.googlegroups.com..=
..
HI,
i'm using VC6,
i wrote a DLL in fortran using silverfrost ftn95, and i try tu use i=
t
in my VC6 project (also a DLL),
i added the lib file in the link setting of my project, but i got th=
e
message:
error LNK2001: unresolved external symbol
what may be wrong???
yes i put extern "C"
extern "C" double BZ_Y(Points* bz,double x);
void test()
{
Points* bz = new Points[4];
double x = 0.1;
x = BZ_Y(bz,x);
}
please if someone has a suggestion, about the problem!!!
thanks, your links help me and now i have just one link error:
Inter29.obj : error LNK2001: unresolved external symbol __imp__BZ_Y@12
code in C++:
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);
}
i tried to put in Fortran:
double precision function Bz_Y(bz, x)
!DEC$ ATTRIBUTES DLLEXPORT::Bz_Y
!DEC$ ATTRIBUTES C, ALIAS: 'BZ_Y@12':: Bz_Y
.....
end function
but it does not work
it seems that the problem is in how to make the function Bz_Y exported
as BZ_Y@12