Anonymous
Not applicable
Mar 17, 2016
12:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 17, 2016
12:55 AM
When I link CyApi.lib in VS2015 C++,an error occur.error LNK2019: unresolved symbol _sprintf
How can I resolve it.
Thanks
2 Replies
Anonymous
Not applicable
Mar 17, 2016
07:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 17, 2016
07:30 AM
Add the following library to the linker input files:
legacy_stdio_definitions.lib
VS 2015 now uses inline definitions that call internal functions for many of the stdio.h functions. If an object file (or library member) depends on one of those functions, then the legacy_stdio_definitions.lib provides an externally linkable version of the function that can be linked to.
Your other option is to recompile the unit that depends on those functions with VS 2015 (this is probably the preferred option).
Thanks,
Krishna.
Anonymous
Not applicable
Mar 17, 2016
07:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 17, 2016
07:38 PM
I have resolved it.Thanks