srija
Member level 1
hi everybody
Can anybody tell me how to resolve the following error??
I created dll and trying to use the dll in another project.
unresolved external symbol "public: static int __cdecl Dll::add(int,int)" (?add@Dll@@SAHHH@Z) referenced in function _main
I copied and pasted the .lib and.h and .dll file in the new project folder and using the code as
error LNK2019: unresolved external symbol "public: static double __cdecl MyMathFuncs::Add(double,double)" (?Add@MyMathFuncs@@SANNN@Z) referenced in function _main
#include "Dll.h"
#include <iostream>
using namespace std;
int main()
{
double a = 7.4;
int b = 99;
cout << "a + b = " <<
MyMathFuncs::Add(a, b) << endl;
}
thanking you in advance
Can anybody tell me how to resolve the following error??
I created dll and trying to use the dll in another project.
unresolved external symbol "public: static int __cdecl Dll::add(int,int)" (?add@Dll@@SAHHH@Z) referenced in function _main
I copied and pasted the .lib and.h and .dll file in the new project folder and using the code as
error LNK2019: unresolved external symbol "public: static double __cdecl MyMathFuncs::Add(double,double)" (?Add@MyMathFuncs@@SANNN@Z) referenced in function _main
#include "Dll.h"
#include <iostream>
using namespace std;
int main()
{
double a = 7.4;
int b = 99;
cout << "a + b = " <<
MyMathFuncs::Add(a, b) << endl;
}
thanking you in advance