- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
A few years ago, I wrote an C++ application for Windows - use CY68013, CyAPI-based, and it work good.
And now, after migrating from Visual Studio 2015 to Visual Studio 2017, my application (for CY68013, CyAPI-based) can not build anymore!
I've got the error message:
1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol _sprintf referenced in function "public: void __thiscall CCyUSBDevice::UsbdStatusString(unsigned long,char *)" (?UsbdStatusString@CCyUSBDevice@@QAEXKPAD@Z)
It seems that problem is into CyAPI.lib.
How can I fix it?
Thnx.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
- Please check if you have added the 'legacy_stdio_definitions.lib' in the "Linker" input properties (See below image.)
- If you still face the issue, kindly, share the project for me to check. In case you feel the project is confidential, send it over the private message option.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
- Please check if you have added the 'legacy_stdio_definitions.lib' in the "Linker" input properties (See below image.)
- If you still face the issue, kindly, share the project for me to check. In case you feel the project is confidential, send it over the private message option.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much!
It helped!