CYUSB3KIT-003 : CyAPI

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Christophe
Level 3
Level 3
25 sign-ins 10 replies posted 5 questions asked

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

0 Likes
1 Solution
Christophe
Level 3
Level 3
25 sign-ins 10 replies posted 5 questions asked

Okay, I found an answer on the forum community.

 

I had to add legacy_stdio_definitions.lib in the linker entries

View solution in original post

0 Likes
2 Replies
Christophe
Level 3
Level 3
25 sign-ins 10 replies posted 5 questions asked

I'm using CyAPI.lib 64bits version

0 Likes
Christophe
Level 3
Level 3
25 sign-ins 10 replies posted 5 questions asked

Okay, I found an answer on the forum community.

 

I had to add legacy_stdio_definitions.lib in the linker entries

0 Likes