compile error -3.4.7 CyAPI.lib(x64) in vs2010

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

cross mob
Anonymous
Not applicable

project on windows 7 (x64bit),first i complie CyAPI.lib(X64) on windows xp(32bit) error,but compile CyAPI.lib(x86) is OK

   

And the same error when  i complie CyAPI.lib on windows 7(x64bit) is that CyAPI.lib(x64) error and CyAPI.lib(x86) is OK;

   

all compile in vs2010

   

why??

   

1>CyUsb.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall CCyUSBEndPoint::XferData(unsigned char *,long &,class CCyIsoPktInfo *)" (?XferData@CCyUSBEndPoint@@QAE_NPAEAAJPAVCCyIsoPktInfo@@@Z),该符号在函数 "public: void __thiscall CCyUsb::WritePort(void)" (?WritePort@CCyUsb@@QAEXXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2001: 无法解析的外部符号 "public: bool __thiscall CCyUSBEndPoint::XferData(unsigned char *,long &,class CCyIsoPktInfo *)" (?XferData@CCyUSBEndPoint@@QAE_NPAEAAJPAVCCyIsoPktInfo@@@Z)
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall CCyUSBEndPoint::WaitForXfer(struct _OVERLAPPED *,unsigned long)" (?WaitForXfer@CCyUSBEndPoint@@QAE_NPAU_OVERLAPPED@@K@Z),该符号在函数 "public: int __thiscall COmr2001Dlg::read_buf(unsigned char * const)" (?read_buf@COmr2001Dlg@@QAEHQAE@Z) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: unsigned char __thiscall CCyUSBDevice::EndPointCount(void)" (?EndPointCount@CCyUSBDevice@@QAEEXZ),该符号在函数 "public: int __thiscall COmr2001Dlg::FindLoopDevice(void)" (?FindLoopDevice@COmr2001Dlg@@QAEHXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall CCyUSBDevice::Open(unsigned char)" (?Open@CCyUSBDevice@@QAE_NE@Z),该符号在函数 "public: int __thiscall COmr2001Dlg::FindLoopDevice(void)" (?FindLoopDevice@COmr2001Dlg@@QAEHXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ),该符号在函数 "public: int __thiscall COmr2001Dlg::FindLoopDevice(void)" (?FindLoopDevice@COmr2001Dlg@@QAEHXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CCyUSBDevice::CCyUSBDevice(void *,struct _GUID,int)" (??0CCyUSBDevice@@QAE@PAXU_GUID@@H@Z),该符号在函数 "public: int __thiscall COmr2001Dlg::FindLoopDevice(void)" (?FindLoopDevice@COmr2001Dlg@@QAEHXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CCyUSBDevice::~CCyUSBDevice(void)" (??1CCyUSBDevice@@QAE@XZ),该符号在函数 "public: void * __thiscall CCyUSBDevice::`scalar deleting destructor'(unsigned int)" (??_GCCyUSBDevice@@QAEPAXI@Z) 中被引用

0 Likes
5 Replies
Anonymous
Not applicable

 Hi,

   

 

   

Are you using the latest version of SuiteUSB? If not, can you please try out the CyAPI.lib from the respective folder, available as part of the latest SuiteUSB (http://www.cypress.com/?rID=34870). Please check and let us know, if this issue is seen with the latest version also.

   

 

   

Regards,

   

Gayathri

0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

Are you using the latest version of SuiteUSB? If not, can you please try out the CyAPI.lib from the respective folder, available as part of the latest SuiteUSB (http://www.cypress.com/?rID=34870). Please check and let us know, if this issue is seen with the latest version also.

   

 

   

Regards,

   

Gayathri

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello!

   

I also meet the same question .

   

Please give me the question's solution.

   

Thank you

0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

Pleae try building the application by forcing that to x86 architecture in VS 2010 and see if it builds successfully?

   

 

   

Regards,

   

Gayathri

0 Likes
Anonymous
Not applicable

 C# or C++ heavily depends on system performance counter. If the performance counter instantiation fails, then a exception is thrown by the system. Please try the following:

   


In the problem machine,launch performance monitor. Make sure the processor time graph is moving. To launch performance monitor, go to Run "perfmon.msc" and please make sure you can run performance monitoring successfully.

   

 

   

Thanks

   

Nikhil

0 Likes