LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FTDI static library: Error reading from file: 'LibFT4222-v1.4.7\imports\LibFT4222\lib\ucrt\amd64\LibFT4222-64.lib'.

FTDI has confirmed that their .lib cannot be used on the LabWindows compiler.

 

...which is odd. We have been using their DLL-linking .lib without issue for almost a decade.

 

I guess we stick with using the DLL version.

0 Kudos
Message 11 of 12
(18 Views)

For anyone else who runs into it, here is the scoop. Special thanks to FTDI for their great support with this.

 

1. The FTDI library was compiled using Microsoft Visual Studio 2015. Because of that, the STATIC libraries is produces cannot be linked with Clang (LabWindows) or GCC. I need to switch to using Visual Studio to create my DLL.

 

2. In Visual Studio, you must install the 2015 toolkit, and Windows 10 SDK, and use that with your project. FTDI was built with this, and needs it to link.

 

I was able to build my DLL inside of Visual Studio 2015 and create a .dll and .lib that included the static FTDI library. That DLL/.lib has now been tested via GCC and Clang 3.3 successfully.

 

Huzzah!

0 Kudos
Message 12 of 12
(15 Views)