-
February 20th, 2007, 03:57 PM
#1
Question on LNK2019 -- unresolved external symbol
I've create a static library. In it, I make the following call:
wcsstr(DevPath, Device);
The entire library compiles and links to create a fine static library.
When I link my static library into my application, I get the following link error:
Error 1 error LNK2019: unresolved external symbol __imp__wcsstr referenced in function "wchar_t * __cdecl wcsstr(wchar_t *,wchar_t const *)" (?wcsstr@@YAPA_WPA_WPB_W@Z)
Now, wcsstr is an inline function in <string.h>. I've used #pragma auto_inline(off) to get rid of it. I have also linked with /Od2. Nothing seems to help. I have also linked ignoring MSVCRTD.LIB. (Linking with this library causes LNK2005 errors -- symbol already defined in object).
I appreciate any thoughts....
Last edited by werpa; February 20th, 2007 at 04:13 PM.
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
|