When a C++ project with CyAPI.lib is built using Visual Studio, the error “CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol” is shown. How do I fix this error?
The error is thrown when the linker cannot find the CyAPI.lib library file. To fix this, link the CyAPI.lib library to your project. Refer to this MSDN article on how to link a library with your project.
Link the following libraries:
- setupapi.lib. This is a standard library available with the Windows SDK.
- CyAPI.lib. This library is located at C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\library\cpp\lib\x64 for 64-bit systems and at C:\Program Files\Cypress\EZ-USB FX3 SDK\1.3\library\cpp\lib\x86 for 32-bit systems)