B
barkha shah
Hi All,
I am trying to call a C function (in static library) from C++ class ( Dll
application).
The C function is declared as follow in the multitheaded library as follows:
#ifdef __cplusplus
extern "C" {
#endif
extern int abc(const char *host, int Port);
#ifdef __cplusplus
}
My Call in C++ ( Multithreaded Dll app)
Class hey
{
public:
int heysee()
{
int a = abc("sdf",234);
return a;
}
};
IXhubService.obj : error LNK2019: unresolved external symbol _abc referenced
in function "public: int __thiscall hey::abc(char const *,int)"
(?heysee@hey@@QAEHPBDH@Z)
Can anyone please tell me how to remove this linking error?
Thanks
I am trying to call a C function (in static library) from C++ class ( Dll
application).
The C function is declared as follow in the multitheaded library as follows:
#ifdef __cplusplus
extern "C" {
#endif
extern int abc(const char *host, int Port);
#ifdef __cplusplus
}
My Call in C++ ( Multithreaded Dll app)
Class hey
{
public:
int heysee()
{
int a = abc("sdf",234);
return a;
}
};
IXhubService.obj : error LNK2019: unresolved external symbol _abc referenced
in function "public: int __thiscall hey::abc(char const *,int)"
(?heysee@hey@@QAEHPBDH@Z)
Can anyone please tell me how to remove this linking error?
Thanks