|
-
May 26th, 2011, 06:54 AM
#1
Linker error while connecting static library with DLL
I have a static library in which class with log4net is defined.something like this -
public ref class CustomLog
{
public:
static log4net::ILog^ m_logger;
log4net::ILog^ SetLogger();
};
This static library is then used to connect to another C++ DLL - I have added header file used for this log class in C++ DLL also added static library reference in additional dependency.WHen I ma trying to compile this DLL getting following linking error -
error LNK2020: unresolved token (06000003) CustomLog::SetLogger
Please let me know how to resolve this issue.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|