<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using Cypress USB Library CyAPI.dll[solved]]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<p dir="auto">I have been trying to use the library CyAPI.lib provided by Cypress USB Suite 3.4.7</p>
<p dir="auto">I put the .lib file in the lib/ folder in the project directory</p>
<p dir="auto">It comes with the CyAPI.h header file which is located in the inc/ folder</p>
<p dir="auto">My project file looks like this (generated by Qt)</p>
<p dir="auto">@<br />
#Add CyAPI lib<br />
win32: LIBS += -L$$PWD/lib/ -lCyAPI<br />
INCLUDEPATH += $$PWD/inc<br />
DEPENDPATH += $$PWD/inc<br />
@</p>
<p dir="auto">When I compiled it, this is the error:</p>
<p dir="auto">@<br />
mainwindow.obj : error LNK2019: unresolved external symbol "public: __thiscall CCyUSBDevice::~CCyUSBDevice(void)" (??1CCyUSBDevice@@QAE@XZ) referenced in function "public: void __thiscall MainWindow::USB_Init(void)" (?USB_Init@MainWindow@@QAEXXZ)<br />
mainwindow.obj : error LNK2019: unresolved external symbol "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ) referenced in function "public: void __thiscall MainWindow::USB_Init(void)" (?USB_Init@MainWindow@@QAEXXZ)<br />
mainwindow.obj : error LNK2019: unresolved external symbol "public: __thiscall CCyUSBDevice::CCyUSBDevice(void *,struct _GUID,int)" (??0CCyUSBDevice@@QAE@PAXU_GUID@@H@Z) referenced in function "public: void __thiscall MainWindow::USB_Init(void)" (?USB_Init@MainWindow@@QAEXXZ)<br />
debug\qtproj.exe : fatal error LNK1120: 3 unresolved externals<br />
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x460'<br />
Stop.<br />
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'<br />
Stop.<br />
@</p>
<p dir="auto">It looks like the lib failed to link. Can someone help me understand why it doesn't link? Is it the library's problem or something failed in the linking process</p>
<p dir="auto">I am using Qt5.0.0 by the way, compiled with default parameters</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/topic/31912/using-cypress-usb-library-cyapi-dll-solved</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 04:41:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/31912.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Sep 2013 08:05:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using Cypress USB Library CyAPI.dll[solved] on Mon, 16 Sep 2013 11:12:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">Good to see someone else is using this library to do things!</p>
<p dir="auto">If you have installed the Cypress USB Suite 3.4.7. There are files in C:/Cypress/Cypress Suite USB 3.4.7/CyAPI</p>
<p dir="auto">You want the CyAPI.lib in the lib/x86/ folder (I used the one from x64, which created the problem). Put this in your Qt project directory lib/ then grab all the header files in  C:\Cypress\Cypress Suite USB 3.4.7\CyAPI\inc and put them in your project directory inc/ folder</p>
<p dir="auto">You can then use the code here to link the library to your project:</p>
<p dir="auto">@<br />
#Add CyAPI lib<br />
win32: LIBS += -L$$PWD/lib/ -lCyAPI<br />
INCLUDEPATH += $$PWD/inc<br />
DEPENDPATH += $$PWD/inc<br />
@</p>
<p dir="auto">Make sure when you use the library, include &lt;Windows.h&gt; because CyAPI uses a lot of the windows definitions.</p>
]]></description><link>https://forum.qt.io/post/195428</link><guid isPermaLink="true">https://forum.qt.io/post/195428</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 16 Sep 2013 11:12:13 GMT</pubDate></item><item><title><![CDATA[Reply to Using Cypress USB Library CyAPI.dll[solved] on Mon, 16 Sep 2013 08:29:32 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="aobo" date="1379296197"]Hi SGalst</p>
<p dir="auto">Thanks for the help. I somehow copied the x64 lib into my project directory. with the x86 version, it works now!</p>
<p dir="auto">Thanks![/quote]</p>
<p dir="auto">Hi aobo, which x64 lib do you copy into project? Is user32.lib?<br />
Should I create lib/ folder and inc/folder and put in CyAPI.lib and CyAPI.h?<br />
Thanks!</p>
]]></description><link>https://forum.qt.io/post/195402</link><guid isPermaLink="true">https://forum.qt.io/post/195402</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 16 Sep 2013 08:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to Using Cypress USB Library CyAPI.dll[solved] on Mon, 16 Sep 2013 07:22:24 GMT]]></title><description><![CDATA[<p dir="auto">You're welcome !</p>
<p dir="auto">Since you got it working, don't forget to update the thread title prepending [solved] so other forum users may know a solution has been found :)</p>
]]></description><link>https://forum.qt.io/post/195394</link><guid isPermaLink="true">https://forum.qt.io/post/195394</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 16 Sep 2013 07:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to Using Cypress USB Library CyAPI.dll[solved] on Mon, 16 Sep 2013 01:49:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi SGalst</p>
<p dir="auto">Thanks for the help. I somehow copied the x64 lib into my project directory. with the x86 version, it works now!</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/post/195372</link><guid isPermaLink="true">https://forum.qt.io/post/195372</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 16 Sep 2013 01:49:57 GMT</pubDate></item><item><title><![CDATA[Reply to Using Cypress USB Library CyAPI.dll[solved] on Fri, 13 Sep 2013 20:02:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Does you Qt and CyAPI dll use the same architecture ?</p>
]]></description><link>https://forum.qt.io/post/195252</link><guid isPermaLink="true">https://forum.qt.io/post/195252</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 13 Sep 2013 20:02:59 GMT</pubDate></item></channel></rss>