Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: westrice on September 11, 2012, 04:26:25 PM

Title: TE_USB_FX2_CyAPI_SampleApplication x86 build error
Post by: westrice on September 11, 2012, 04:26:25 PM
Hi Forum,

I've downloaded the TE-USB-Suite folder from github and tried to build TE_USB_FX2_CyAPI_SampleApplication without changing anything besides the target platform to Win32 in the configuration Manager. I'm compiling using Microsoft Visual C++ Express 2010 and Windows7 x86.
I get the following error when building.

1>------ Rebuild All started: Project: TE_USB_FX2_CyAPI_SampleApplication, Configuration: Release Win32 ------
1>  stdafx.cpp
1>  TE_USB_FX2_CyAPI_SampleApplication.cpp
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol _TE_USB_FX2_SendCommand
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol _TE_USB_FX2_ScanCards
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol _TE_USB_FX2_GetData_InstanceDriverBuffer
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol _TE_USB_FX2_GetData
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol _TE_USB_FX2_SetData_InstanceDriverBuffer
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol _TE_USB_FX2_SetData
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol "public: __thiscall CCyUSBDevice::CCyUSBDevice(void *,struct _GUID,int)" (??0CCyUSBDevice@@QAE@PAXU_GUID@@H@Z)
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol _TE_USB_FX2_Open
1>TE_USB_FX2_CyAPI_SampleApplication.obj : error LNK2001: unresolved external symbol _TE_USB_FX2_Close
1>$PATH\TE_USB_FX2_CyAPI_SampleApplication\Release\TE_USB_FX2_CyAPI_SampleApplication.exe : fatal error LNK1120: 9 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


Any sugestion to solve this?

edit: I cleaned up the project before building.
Title: Re: TE_USB_FX2_CyAPI_SampleApplication x86 build error
Post by: westrice on September 11, 2012, 05:49:14 PM
Nevermind I solved the problem, I didn't saw the readme.  I was using the wrong dll's and libs.
Title: Re: TE_USB_FX2_CyAPI_SampleApplication x86 build error
Post by: westrice on September 11, 2012, 06:21:12 PM
Actually the readme file is missing in the CyAPI_sampleApplication folder in the current version.
Title: Re: TE_USB_FX2_CyAPI_SampleApplication x86 build error
Post by: Horsa on September 12, 2012, 10:08:21 AM
We added a lot of new readme files.

Anyway, I recommend to read our detailed and friendly documentation:
http://www.trenz-electronic.de/download/d0/Trenz_Electronic/d1/TE-USB-Suite.html
Title: Re: TE_USB_FX2_CyAPI_SampleApplication x86 build error
Post by: Hengist on April 11, 2014, 06:34:40 PM
The release of the third generation Trenz Electronic USB FX2 Suite made this post obsolete. Please access current documentation and resources here: TE USB FX2 Suite (https://wiki.trenz-electronic.de/display/TEUSB/).