- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I encounter an issue while trying to build a code using CyAPI.lib in Visual Studio Community 2022.
I've followed the setup :
1. Added the path to the headers in my project options (The #include "CyAPI.h" works)
2. Added the path to CyAPI.lib in my project options (linker)
3. Added the setupapi.lib in my project options (linker)
I encounter the following message :
LNK2019 symbole externe non résolu sprintf référencé dans la fonction "public: void __cdecl CCyUSBDevice::UsbdStatusString(unsigned long,char *)" (?UsbdStatusString@CCyUSBDevice@@QEAAXKPEAD@Z) ConsoleApplication2 C:\Users\Christophe.Siebentha\source\repos\ConsoleApplication2\ConsoleApplication2\CyAPI.lib(CyAPI.obj) 1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay, I found an answer on the forum community.
I had to add legacy_stdio_definitions.lib in the linker entries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using CyAPI.lib 64bits version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay, I found an answer on the forum community.
I had to add legacy_stdio_definitions.lib in the linker entries