AnsweredAssumed Answered

Can't compile libiio in Visual Studio

Question asked by etroy on Feb 24, 2016
Latest reply on Feb 29, 2016 by pcercuei

I need to build up libiio in Visual Studio so that I can use Matlab and Simulink with the Xilinx ZC706 and FMCOMMS3 and FMDAQ2 boards. But, when following the instructions on Building libiio in Visual Studio [Analog Devices Wiki] I get the expected error during CMAKE, but I also get the following message and error:

The C compiler identification is MSVC 15.0.21022.8

Check for working C compiler using: Visual Studio 9 2008

Check for working C compiler using: Visual Studio 9 2008 -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Looking for in6addr_any

Looking for in6addr_any - not found

CMake Warning at CMakeLists.txt:68 (message):
  IPv6 is not available in your system.


I tried just correcting the expected error and compiling but I get the following error in Visual Studio 2012 express:


Error 1 error C1083: Cannot open include file: 'stdbool.h': No such file or directory d:\libiio-master\iio.h 29 1 iio


I get that error something like 8 times.


How can I guild this libiio? And, why is it simply not available pre-built? Can I get it pre-built somewhere?


I am running Windows 7 X64, although I also need to run it on a Windows 7 X32 machine, too.