You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I've followed the instructions as mention in file README_BUILD.md
when I run "make -j$(nproc)" it shows the following errors
[ 1%] Building C object CMakeFiles/iiod-responder.dir/iiod-responder.c.o
[ 2%] Building C object CMakeFiles/iio-compat.dir/compat.c.o
[ 3%] Building C object CMakeFiles/iio-compat.dir/dynamic-unix.c.o
[ 5%] Linking C static library libiiod-responder.a
[ 5%] Built target iiod-responder
[ 6%] Building C object CMakeFiles/iio.dir/backend.c.o
[ 7%] Building C object CMakeFiles/iio.dir/attr.c.o
[ 7%] Built target libiio-py
[ 8%] Building C object CMakeFiles/iio.dir/block.c.o
[ 10%] Building C object CMakeFiles/iio.dir/buffer.c.o
[ 11%] Building C object CMakeFiles/iio.dir/channel.c.o
[ 12%] Building C object CMakeFiles/iio.dir/context.c.o
[ 13%] Building C object CMakeFiles/iio.dir/device.c.o
[ 15%] Building C object CMakeFiles/iio.dir/events.c.o
[ 16%] Building C object CMakeFiles/iio.dir/library.c.o
[ 17%] Building C object CMakeFiles/iio.dir/mask.c.o
[ 18%] Building C object CMakeFiles/iio.dir/sort.c.o
[ 20%] Building C object CMakeFiles/iio.dir/scan.c.o
[ 21%] Linking C shared library libiio.so.0
[ 22%] Building C object CMakeFiles/iio.dir/stream.c.o
[ 23%] Building C object CMakeFiles/iio.dir/task.c.o
[ 23%] Built target iio-compat
[ 25%] Building C object CMakeFiles/iio.dir/utilities.c.o
[ 26%] Building C object CMakeFiles/iio.dir/usb.c.o
[ 27%] Building C object CMakeFiles/iio.dir/local.c.o
[ 28%] Building C object CMakeFiles/iio.dir/deps/libini/libini.c.o
[ 30%] Building C object CMakeFiles/iio.dir/local-dmabuf.c.o
[ 31%] Building C object CMakeFiles/iio.dir/local-mmap.c.o
[ 32%] Building C object CMakeFiles/iio.dir/network.c.o
[ 33%] Building C object CMakeFiles/iio.dir/network-unix.c.o
[ 35%] Building C object CMakeFiles/iio.dir/dns_sd.c.o
[ 36%] Building C object CMakeFiles/iio.dir/dns_sd_avahi.c.o
[ 37%] Building C object CMakeFiles/iio.dir/xml.c.o
[ 38%] Building C object CMakeFiles/iio.dir/lock.c.o
[ 40%] Building C object CMakeFiles/iio.dir/iiod-client.c.o
[ 41%] Linking C shared library libiio.so
[ 41%] Built target iio
[ 42%] [BISON][parser] Building parser with bison 3.8.2
[ 43%] Building C object utils/CMakeFiles/iio_tests_helper.dir/iio_common.c.o
[ 45%] Building C object examples/CMakeFiles/iiostream_helper.dir/iiostream-common.c.o
[ 46%] Building C object examples/CMakeFiles/iio-monitor.dir/iio-monitor.c.o
[ 47%] [FLEX][lexer] Building scanner with flex 2.6.4
[ 48%] Linking C static library libiiostream_helper.a
[ 50%] Building C object iiod/CMakeFiles/iiod.dir/iiod.c.o
[ 50%] Built target iiostream_helper
[ 51%] Building CXX object bindings/cpp/CMakeFiles/iiopp-enum.dir/examples/iiopp-enum.cpp.o
[ 52%] Building C object utils/CMakeFiles/iio_tests_helper.dir/gen_code.c.o
In file included from /home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:12:
/home/matvei/libiio/bindings/cpp/./iiopp.h:17:10: fatal error: iio.h: No such file or directory
17 | #include <iio.h>
| ^~~~~~~
compilation terminated.
make[2]: *** [bindings/cpp/CMakeFiles/iiopp-enum.dir/build.make:76: bindings/cpp/CMakeFiles/iiopp-enum.dir/examples/iiopp-enum.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:798: bindings/cpp/CMakeFiles/iiopp-enum.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 53%] Building C object iiod/CMakeFiles/iiod.dir/ops.c.o
[ 55%] Linking C executable iio-monitor
[ 56%] Linking C static library libiio_tests_helper.a
[ 56%] Built target iio-monitor
[ 56%] Built target iio_tests_helper
[ 57%] Building C object iiod/CMakeFiles/iiod.dir/responder.c.o
[ 58%] Building C object iiod/CMakeFiles/iiod.dir/thread-pool.c.o
[ 60%] Building C object iiod/CMakeFiles/iiod.dir/parser.c.o
[ 61%] Building C object iiod/CMakeFiles/iiod.dir/lexer.c.o
[ 62%] Building C object iiod/CMakeFiles/iiod.dir/usbd.c.o
[ 63%] Building C object iiod/CMakeFiles/iiod.dir/serial.c.o
[ 65%] Building C object iiod/CMakeFiles/iiod.dir/dns-sd.c.o
In file included from /home/matvei/libiio/iiod/debug.h:12,
from /home/matvei/libiio/iiod/dns-sd.c:9:
/home/matvei/libiio/iiod/dns-sd.c: In function ‘start_avahi_thd’:
/home/matvei/libiio/iiod/dns-sd.c:323:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘__time_t’ {aka ‘long int’} [-Wformat=]
323 | IIO_INFO("Avahi didn't start, try again in %d seconds later\n", ts.tv_sec);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
| |
| __time_t {aka long int}
/home/matvei/libiio/include/iio/iio-debug.h:67:59: note: in definition of macro ‘prm_info’
67 | iio_prm_printf((prm), LEVEL_INFO, __VA_ARGS__); \
| ^~~~~~~~~~~
/home/matvei/libiio/iiod/dns-sd.c:323:17: note: in expansion of macro ‘IIO_INFO’
323 | IIO_INFO("Avahi didn't start, try again in %d seconds later\n", ts.tv_sec);
| ^~~~~~~~
/home/matvei/libiio/iiod/dns-sd.c:323:61: note: format string is defined here
323 | IIO_INFO("Avahi didn't start, try again in %d seconds later\n", ts.tv_sec);
| ~^
| |
| int
| %ld
[ 66%] Linking C executable iiod
[ 66%] Built target iiod
make: *** [Makefile:136: all] Error 2
I changed to #include <iio/iio.h> in libiio/bindings/cpp/./iiopp.h
and I got the following errors
[ 2%] Built target iiod-responder
[ 6%] Built target iio-compat
[ 41%] Built target iio
[ 45%] Built target iio_tests_helper
[ 47%] Built target iio-monitor
[ 50%] Built target iiostream_helper
[ 51%] Building C object utils/CMakeFiles/iio_genxml.dir/iio_genxml.c.o
[ 52%] Building CXX object bindings/cpp/CMakeFiles/iiopp-enum.dir/examples/iiopp-enum.cpp.o
[ 67%] Built target iiod
[ 68%] Building C object utils/CMakeFiles/iio_info.dir/iio_info.c.o
[ 70%] Linking C executable iio_genxml
[ 70%] Built target libiio-py
[ 70%] Built target iio_genxml
[ 71%] Building C object utils/CMakeFiles/iio_rwdev.dir/iio_rwdev.c.o
[ 72%] Building C object utils/CMakeFiles/iio_attr.dir/iio_attr.c.o
[ 73%] Linking C executable iio_info
[ 73%] Built target iio_info
[ 75%] Building C object utils/CMakeFiles/iio_reg.dir/iio_reg.c.o
[ 76%] Linking C executable iio_rwdev
In file included from /home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:12:
/home/matvei/libiio/bindings/cpp/./iiopp.h:313:9: error: ‘iio_channel_attr_read’ was not declared in this scope; did you mean ‘iio_channel_read’?
313 | iio_channel_attr_read,
| ^~~~~~~~~~~~~~~~~~~~~
| iio_channel_read
/home/matvei/libiio/bindings/cpp/./iiopp.h:314:9: error: ‘iio_channel_attr_read_bool’ was not declared in this scope; did you mean ‘iio_attr_read_bool’?
314 | iio_channel_attr_read_bool,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_read_bool
/home/matvei/libiio/bindings/cpp/./iiopp.h:315:9: error: ‘iio_channel_attr_read_double’ was not declared in this scope; did you mean ‘iio_attr_read_double’?
315 | iio_channel_attr_read_double,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_read_double
/home/matvei/libiio/bindings/cpp/./iiopp.h:316:9: error: ‘iio_channel_attr_read_longlong’ was not declared in this scope; did you mean ‘iio_attr_read_longlong’?
316 | iio_channel_attr_read_longlong,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_read_longlong
/home/matvei/libiio/bindings/cpp/./iiopp.h:317:9: error: ‘iio_channel_attr_write’ was not declared in this scope; did you mean ‘iio_channel_write’?
317 | iio_channel_attr_write,
| ^~~~~~~~~~~~~~~~~~~~~~
| iio_channel_write
/home/matvei/libiio/bindings/cpp/./iiopp.h:318:9: error: ‘iio_channel_attr_write_bool’ was not declared in this scope; did you mean ‘iio_attr_write_bool’?
318 | iio_channel_attr_write_bool,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_write_bool
/home/matvei/libiio/bindings/cpp/./iiopp.h:319:9: error: ‘iio_channel_attr_write_double’ was not declared in this scope; did you mean ‘iio_attr_write_double’?
319 | iio_channel_attr_write_double,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_write_double
/home/matvei/libiio/bindings/cpp/./iiopp.h:320:9: error: ‘iio_channel_attr_write_longlong’ was not declared in this scope; did you mean ‘iio_attr_write_longlong’?
320 | iio_channel_attr_write_longlong
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_write_longlong
/home/matvei/libiio/bindings/cpp/./iiopp.h:321:9: error: template argument 2 is invalid
321 | > Attr;
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:321:9: error: template argument 3 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:321:9: error: template argument 4 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:321:9: error: template argument 5 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:321:9: error: template argument 6 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:321:9: error: template argument 7 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:321:9: error: template argument 8 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:321:9: error: template argument 9 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:327:9: error: conversion from ‘const iio_attr* (*)(const iio_channel*, unsigned int)’ to ‘const char* (*)(const iio_channel*, unsigned int)’ in a converted constant expression
327 | > AttrSeq;
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:327:9: error: could not convert ‘iio_channel_get_attr’ from ‘const iio_attr*(const iio_channel*, unsigned int)’ to ‘const char* (*)(const iio_channel*, unsigned int)’
327 | > AttrSeq;
| ^
| |
| const iio_attr*(const iio_channel*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h:327:9: error: conversion from ‘const iio_attr* (*)(const iio_channel*, const char*)’ to ‘const char* (*)(const iio_channel*, const char*)’ in a converted constant expression
/home/matvei/libiio/bindings/cpp/./iiopp.h:327:9: error: could not convert ‘iio_channel_find_attr’ from ‘const iio_attr*(const iio_channel*, const char*)’ to ‘const char* (*)(const iio_channel*, const char*)’
327 | > AttrSeq;
| ^
| |
| const iio_attr*(const iio_channel*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h: In constructor ‘iiopp::Channel::Channel(iio_channel*)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:308:50: error: invalid conversion from ‘iio_channel*’ to ‘iiopp::Channel::AttrSeq’ {aka ‘int’} [-fpermissive]
308 | Channel(iio_channel * chan) : p(chan), attrs(chan){}
| ^~~~
| |
| iio_channel*
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::optional<int> iiopp::Channel::attr(iiopp::cstr)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:333:96: error: no matching function for call to ‘attr<iio_channel, iiopp::Channel::Attr, iio_channel_find_attr>(iio_channel* const&, iiopp::cstr&)’
333 | optional<Attr> attr(cstr name) {return impl::attr<iio_channel, Attr, iio_channel_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* find_attr_T)(const obj_T*, const char*)> std::optional<_Up> iiopp::impl::attr(const obj_T*, iiopp::cstr)’
240 | optional<attr_T> attr(obj_T const * obj, cstr name)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:333:96: error: conversion from ‘const iio_attr* (*)(const iio_channel*, const char*)’ to ‘const char* (*)(const iio_channel*, const char*)’ in a converted constant expression
333 | optional<Attr> attr(cstr name) {return impl::attr<iio_channel, Attr, iio_channel_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:333:96: error: could not convert ‘iio_channel_find_attr’ from ‘const iio_attr*(const iio_channel*, const char*)’ to ‘const char* (*)(const iio_channel*, const char*)’
333 | optional<Attr> attr(cstr name) {return impl::attr<iio_channel, Attr, iio_channel_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_attr*(const iio_channel*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* get_attr_T)(const obj_T*, unsigned int)> std::optional<_Up> iiopp::impl::attr(const obj_T*, unsigned int)’
249 | optional<attr_T> attr(obj_T const * obj, unsigned int idx)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:333:96: error: conversion from ‘const iio_attr* (*)(const iio_channel*, const char*)’ to ‘const char* (*)(const iio_channel*, unsigned int)’ in a converted constant expression
333 | optional<Attr> attr(cstr name) {return impl::attr<iio_channel, Attr, iio_channel_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:333:96: error: could not convert ‘iio_channel_find_attr’ from ‘const iio_attr*(const iio_channel*, const char*)’ to ‘const char* (*)(const iio_channel*, unsigned int)’
333 | optional<Attr> attr(cstr name) {return impl::attr<iio_channel, Attr, iio_channel_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_attr*(const iio_channel*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::optional<int> iiopp::Channel::attr(unsigned int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:334:102: error: no matching function for call to ‘attr<iio_channel, iiopp::Channel::Attr, iio_channel_get_attr>(iio_channel* const&, unsigned int&)’
334 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_channel, Attr, iio_channel_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* find_attr_T)(const obj_T*, const char*)> std::optional<_Up> iiopp::impl::attr(const obj_T*, iiopp::cstr)’
240 | optional<attr_T> attr(obj_T const * obj, cstr name)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:334:102: error: conversion from ‘const iio_attr* (*)(const iio_channel*, unsigned int)’ to ‘const char* (*)(const iio_channel*, const char*)’ in a converted constant expression
334 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_channel, Attr, iio_channel_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:334:102: error: could not convert ‘iio_channel_get_attr’ from ‘const iio_attr*(const iio_channel*, unsigned int)’ to ‘const char* (*)(const iio_channel*, const char*)’
334 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_channel, Attr, iio_channel_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| const iio_attr*(const iio_channel*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* get_attr_T)(const obj_T*, unsigned int)> std::optional<_Up> iiopp::impl::attr(const obj_T*, unsigned int)’
249 | optional<attr_T> attr(obj_T const * obj, unsigned int idx)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:334:102: error: conversion from ‘const iio_attr* (*)(const iio_channel*, unsigned int)’ to ‘const char* (*)(const iio_channel*, unsigned int)’ in a converted constant expression
334 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_channel, Attr, iio_channel_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:334:102: error: could not convert ‘iio_channel_get_attr’ from ‘const iio_attr*(const iio_channel*, unsigned int)’ to ‘const char* (*)(const iio_channel*, unsigned int)’
334 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_channel, Attr, iio_channel_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| const iio_attr*(const iio_channel*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘void iiopp::Channel::disable()’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:338:40: error: too few arguments to function ‘void iio_channel_disable(const iio_channel*, iio_channels_mask*)’
338 | void disable() {iio_channel_disable(p);}
| ~~~~~~~~~~~~~~~~~~~^~~
In file included from /home/matvei/libiio/bindings/cpp/./iiopp.h:17:
/home/matvei/libiio/include/iio/iio.h:929:12: note: declared here
929 | __api void iio_channel_disable(const struct iio_channel *chn,
| ^~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘void iiopp::Channel::enable()’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:339:38: error: too few arguments to function ‘void iio_channel_enable(const iio_channel*, iio_channels_mask*)’
339 | void enable() {iio_channel_enable(p);}
| ~~~~~~~~~~~~~~~~~~^~~
/home/matvei/libiio/include/iio/iio.h:922:12: note: declared here
922 | __api void iio_channel_enable(const struct iio_channel *chn,
| ^~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::optstr iiopp::Channel::find_attr(iiopp::cstr)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:340:72: error: cannot convert ‘const iio_attr*’ to ‘const char*’
340 | optstr find_attr(cstr name) {return impl::opt(iio_channel_find_attr(p, name));}
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_attr*
/home/matvei/libiio/bindings/cpp/./iiopp.h:132:32: note: initializing argument 1 of ‘iiopp::optstr iiopp::impl::opt(const char*)’
132 | inline optstr opt(char const * s)
| ~~~~~~~~~~~~~^
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘bool iiopp::Channel::is_enabled() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:348:60: error: too few arguments to function ‘bool iio_channel_is_enabled(const iio_channel*, const iio_channels_mask*)’
348 | bool is_enabled() const { return iio_channel_is_enabled(p);}
| ~~~~~~~~~~~~~~~~~~~~~~^~~
/home/matvei/libiio/include/iio/iio.h:937:1: note: declared here
937 | iio_channel_is_enabled(const struct iio_channel *chn,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘void* iiopp::Buffer::end()’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:372:26: error: ‘iio_buffer_end’ was not declared in this scope; did you mean ‘iio_buffer_enable’?
372 | void * end() {return iio_buffer_end(p);}
| ^~~~~~~~~~~~~~
| iio_buffer_enable
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘void* iiopp::Buffer::first(iiopp::Channel)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:373:43: error: ‘iio_buffer_first’ was not declared in this scope; did you mean ‘iio_block_first’?
373 | void * first(Channel channel){ return iio_buffer_first(p, channel);}
| ^~~~~~~~~~~~~~~~
| iio_block_first
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘ssize_t iiopp::Buffer::for_each(ssize_t (*)(const iio_channel*, void*, size_t, void*), void*)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:374:127: error: ‘iio_buffer_foreach_sample’ was not declared in this scope; did you mean ‘iio_block_foreach_sample’?
374 | ssize_t for_each(ssize_t (*callback)(const struct iio_channel *chn, void *src, size_t bytes, void *d), void *data){return iio_buffer_foreach_sample(p, callback, data);}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| iio_block_foreach_sample
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘int iiopp::Buffer::poll_fd() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:378:25: error: ‘iio_buffer_get_poll_fd’ was not declared in this scope; did you mean ‘iio_buffer_get_device’?
378 | int const ret = iio_buffer_get_poll_fd(p);
| ^~~~~~~~~~~~~~~~~~~~~~
| iio_buffer_get_device
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘size_t iiopp::Buffer::push() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:383:48: error: ‘iio_buffer_push’ was not declared in this scope; did you mean ‘iio_buffer’?
383 | size_t push() const { return impl::check_n(iio_buffer_push(p), "iio_buffer_push");}
| ^~~~~~~~~~~~~~~
| iio_buffer
[ 77%] Linking C executable iio_reg
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘size_t iiopp::Buffer::push_partial(size_t) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:384:75: error: ‘iio_buffer_push_partial’ was not declared in this scope; did you mean ‘iio_buffer_set_data’?
384 | size_t push_partial(size_t samples_count) const {return impl::check_n(iio_buffer_push_partial(p, samples_count), "iio_buffer_push_partial");}
| ^~~~~~~~~~~~~~~~~~~~~~~
| iio_buffer_set_data
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘size_t iiopp::Buffer::refill() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:385:50: error: ‘iio_buffer_refill’ was not declared in this scope; did you mean ‘iio_buffer_enable’?
385 | size_t refill() const { return impl::check_n(iio_buffer_refill(p), "iio_buffer_refill");}
| ^~~~~~~~~~~~~~~~~
| iio_buffer_enable
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘void iiopp::Buffer::set_blocking_mode(bool)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:386:55: error: ‘iio_buffer_set_blocking_mode’ was not declared in this scope
386 | void set_blocking_mode(bool blocking){impl::check(iio_buffer_set_blocking_mode(p, blocking), "iio_buffer_set_blocking_mode");}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘void* iiopp::Buffer::start()’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:388:28: error: ‘iio_buffer_start’ was not declared in this scope; did you mean ‘iio_buffer_set_data’?
388 | void * start() {return iio_buffer_start(p);}
| ^~~~~~~~~~~~~~~~
| iio_buffer_set_data
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘ptrdiff_t iiopp::Buffer::step() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:389:36: error: ‘iio_buffer_step’ was not declared in this scope; did you mean ‘iio_buffer_destroy’?
389 | ptrdiff_t step() const {return iio_buffer_step(p);}
| ^~~~~~~~~~~~~~~
| iio_buffer_destroy
/home/matvei/libiio/bindings/cpp/./iiopp.h: At global scope:
/home/matvei/libiio/bindings/cpp/./iiopp.h:412:9: error: ‘iio_device_attr_read’ was not declared in this scope; did you mean ‘iio_device_reg_read’?
412 | iio_device_attr_read,
| ^~~~~~~~~~~~~~~~~~~~
| iio_device_reg_read
/home/matvei/libiio/bindings/cpp/./iiopp.h:413:9: error: ‘iio_device_attr_read_bool’ was not declared in this scope; did you mean ‘iio_attr_read_bool’?
413 | iio_device_attr_read_bool,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_read_bool
/home/matvei/libiio/bindings/cpp/./iiopp.h:414:9: error: ‘iio_device_attr_read_double’ was not declared in this scope; did you mean ‘iio_attr_read_double’?
414 | iio_device_attr_read_double,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_read_double
/home/matvei/libiio/bindings/cpp/./iiopp.h:415:9: error: ‘iio_device_attr_read_longlong’ was not declared in this scope; did you mean ‘iio_attr_read_longlong’?
415 | iio_device_attr_read_longlong,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_read_longlong
/home/matvei/libiio/bindings/cpp/./iiopp.h:416:9: error: ‘iio_device_attr_write’ was not declared in this scope; did you mean ‘iio_device_reg_write’?
416 | iio_device_attr_write,
| ^~~~~~~~~~~~~~~~~~~~~
| iio_device_reg_write
/home/matvei/libiio/bindings/cpp/./iiopp.h:417:9: error: ‘iio_device_attr_write_bool’ was not declared in this scope; did you mean ‘iio_attr_write_bool’?
417 | iio_device_attr_write_bool,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_write_bool
/home/matvei/libiio/bindings/cpp/./iiopp.h:418:9: error: ‘iio_device_attr_write_double’ was not declared in this scope; did you mean ‘iio_attr_write_double’?
418 | iio_device_attr_write_double,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_write_double
/home/matvei/libiio/bindings/cpp/./iiopp.h:419:9: error: ‘iio_device_attr_write_longlong’ was not declared in this scope; did you mean ‘iio_attr_write_longlong’?
419 | iio_device_attr_write_longlong
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_write_longlong
/home/matvei/libiio/bindings/cpp/./iiopp.h:420:9: error: template argument 2 is invalid
420 | > Attr;
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:420:9: error: template argument 3 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:420:9: error: template argument 4 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:420:9: error: template argument 5 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:420:9: error: template argument 6 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:420:9: error: template argument 7 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:420:9: error: template argument 8 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:420:9: error: template argument 9 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:426:9: error: conversion from ‘const iio_attr* (*)(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, unsigned int)’ in a converted constant expression
426 | > AttrSeq;
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:426:9: error: could not convert ‘iio_device_get_attr’ from ‘const iio_attr*(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, unsigned int)’
426 | > AttrSeq;
| ^
| |
| const iio_attr*(const iio_device*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h:426:9: error: conversion from ‘const iio_attr* (*)(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, const char*)’ in a converted constant expression
/home/matvei/libiio/bindings/cpp/./iiopp.h:426:9: error: could not convert ‘iio_device_find_attr’ from ‘const iio_attr*(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, const char*)’
426 | > AttrSeq;
| ^
| |
| const iio_attr*(const iio_device*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h:438:9: error: ‘iio_device_debug_attr_read’ was not declared in this scope; did you mean ‘iio_device_reg_read’?
438 | iio_device_debug_attr_read,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_reg_read
/home/matvei/libiio/bindings/cpp/./iiopp.h:439:9: error: ‘iio_device_debug_attr_read_bool’ was not declared in this scope
439 | iio_device_debug_attr_read_bool,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 77%] Built target iio_rwdev
/home/matvei/libiio/bindings/cpp/./iiopp.h:440:9: error: ‘iio_device_debug_attr_read_double’ was not declared in this scope
440 | iio_device_debug_attr_read_double,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:441:9: error: ‘iio_device_debug_attr_read_longlong’ was not declared in this scope
441 | iio_device_debug_attr_read_longlong,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:442:9: error: ‘iio_device_debug_attr_write’ was not declared in this scope; did you mean ‘iio_device_reg_write’?
442 | iio_device_debug_attr_write,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_reg_write
/home/matvei/libiio/bindings/cpp/./iiopp.h:443:9: error: ‘iio_device_debug_attr_write_bool’ was not declared in this scope
443 | iio_device_debug_attr_write_bool,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:444:9: error: ‘iio_device_debug_attr_write_double’ was not declared in this scope
444 | iio_device_debug_attr_write_double,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 78%] Building C object utils/CMakeFiles/iio_event.dir/iio_event.c.o
/home/matvei/libiio/bindings/cpp/./iiopp.h:445:9: error: ‘iio_device_debug_attr_write_longlong’ was not declared in this scope
445 | iio_device_debug_attr_write_longlong
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:446:9: error: template argument 2 is invalid
446 | > DebugAttr;
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:446:9: error: template argument 3 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:446:9: error: template argument 4 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:446:9: error: template argument 5 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:446:9: error: template argument 6 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:446:9: error: template argument 7 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:446:9: error: template argument 8 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:446:9: error: template argument 9 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:452:9: error: conversion from ‘const iio_attr* (*)(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, unsigned int)’ in a converted constant expression
452 | > DebugAttrSeq;
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:452:9: error: could not convert ‘iio_device_get_debug_attr’ from ‘const iio_attr*(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, unsigned int)’
452 | > DebugAttrSeq;
| ^
| |
| const iio_attr*(const iio_device*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h:452:9: error: conversion from ‘const iio_attr* (*)(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, const char*)’ in a converted constant expression
/home/matvei/libiio/bindings/cpp/./iiopp.h:452:9: error: could not convert ‘iio_device_find_debug_attr’ from ‘const iio_attr*(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, const char*)’
452 | > DebugAttrSeq;
| ^
| |
| const iio_attr*(const iio_device*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h:465:9: error: ‘iio_device_buffer_attr_read’ was not declared in this scope
465 | iio_device_buffer_attr_read,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:466:9: error: ‘iio_device_buffer_attr_read_bool’ was not declared in this scope
466 | iio_device_buffer_attr_read_bool,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:467:9: error: ‘iio_device_buffer_attr_read_double’ was not declared in this scope
467 | iio_device_buffer_attr_read_double,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:468:9: error: ‘iio_device_buffer_attr_read_longlong’ was not declared in this scope
468 | iio_device_buffer_attr_read_longlong,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:469:9: error: ‘iio_device_buffer_attr_write’ was not declared in this scope; did you mean ‘iio_device_reg_write’?
469 | iio_device_buffer_attr_write,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_reg_write
/home/matvei/libiio/bindings/cpp/./iiopp.h:470:9: error: ‘iio_device_buffer_attr_write_bool’ was not declared in this scope
470 | iio_device_buffer_attr_write_bool,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:471:9: error: ‘iio_device_buffer_attr_write_double’ was not declared in this scope
471 | iio_device_buffer_attr_write_double,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/utils/iio_event.c: In function ‘print_event’:
/home/matvei/libiio/utils/iio_event.c:66:33: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
66 | printf("Event: time: %lld", event->timestamp);
| ~~~^ ~~~~~~~~~~~~~~~~
| | |
| | int64_t {aka long int}
| long long int
| %ld
/home/matvei/libiio/bindings/cpp/./iiopp.h:472:9: error: ‘iio_device_buffer_attr_write_longlong’ was not declared in this scope
472 | iio_device_buffer_attr_write_longlong
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:473:9: error: template argument 2 is invalid
473 | > BufferAttr;
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:473:9: error: template argument 3 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:473:9: error: template argument 4 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:473:9: error: template argument 5 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:473:9: error: template argument 6 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:473:9: error: template argument 7 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:473:9: error: template argument 8 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:473:9: error: template argument 9 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:476:9: error: ‘iio_device_get_buffer_attrs_count’ was not declared in this scope; did you mean ‘iio_device_get_debug_attrs_count’?
476 | iio_device_get_buffer_attrs_count,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_get_debug_attrs_count
[ 78%] Built target iio_reg
/home/matvei/libiio/bindings/cpp/./iiopp.h:477:9: error: ‘iio_device_get_buffer_attr’ was not declared in this scope; did you mean ‘iio_device_get_debug_attr’?
477 | iio_device_get_buffer_attr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_get_debug_attr
/home/matvei/libiio/bindings/cpp/./iiopp.h:478:9: error: ‘iio_device_find_buffer_attr’ was not declared in this scope; did you mean ‘iio_device_find_debug_attr’?
478 | iio_device_find_buffer_attr
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_find_debug_attr
/home/matvei/libiio/bindings/cpp/./iiopp.h:479:9: error: template argument 3 is invalid
479 | > BufferAttrSeq;
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:479:9: error: template argument 4 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h:479:9: error: template argument 5 is invalid
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::optional<int> iiopp::Device::attr(iiopp::cstr)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:431:94: error: no matching function for call to ‘attr<iio_device, iiopp::Device::Attr, iio_device_find_attr>(iio_device* const&, iiopp::cstr&)’
431 | optional<Attr> attr(cstr name) {return impl::attr<iio_device, Attr, iio_device_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* find_attr_T)(const obj_T*, const char*)> std::optional<_Up> iiopp::impl::attr(const obj_T*, iiopp::cstr)’
240 | optional<attr_T> attr(obj_T const * obj, cstr name)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:431:94: error: conversion from ‘const iio_attr* (*)(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, const char*)’ in a converted constant expression
431 | optional<Attr> attr(cstr name) {return impl::attr<iio_device, Attr, iio_device_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:431:94: error: could not convert ‘iio_device_find_attr’ from ‘const iio_attr*(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, const char*)’
431 | optional<Attr> attr(cstr name) {return impl::attr<iio_device, Attr, iio_device_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_attr*(const iio_device*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* get_attr_T)(const obj_T*, unsigned int)> std::optional<_Up> iiopp::impl::attr(const obj_T*, unsigned int)’
249 | optional<attr_T> attr(obj_T const * obj, unsigned int idx)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:431:94: error: conversion from ‘const iio_attr* (*)(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, unsigned int)’ in a converted constant expression
431 | optional<Attr> attr(cstr name) {return impl::attr<iio_device, Attr, iio_device_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:431:94: error: could not convert ‘iio_device_find_attr’ from ‘const iio_attr*(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, unsigned int)’
431 | optional<Attr> attr(cstr name) {return impl::attr<iio_device, Attr, iio_device_find_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_attr*(const iio_device*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::optional<int> iiopp::Device::attr(unsigned int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:432:100: error: no matching function for call to ‘attr<iio_device, iiopp::Device::Attr, iio_device_get_attr>(iio_device* const&, unsigned int&)’
432 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_device, Attr, iio_device_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* find_attr_T)(const obj_T*, const char*)> std::optional<_Up> iiopp::impl::attr(const obj_T*, iiopp::cstr)’
240 | optional<attr_T> attr(obj_T const * obj, cstr name)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:432:100: error: conversion from ‘const iio_attr* (*)(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, const char*)’ in a converted constant expression
432 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_device, Attr, iio_device_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:432:100: error: could not convert ‘iio_device_get_attr’ from ‘const iio_attr*(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, const char*)’
432 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_device, Attr, iio_device_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| const iio_attr*(const iio_device*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* get_attr_T)(const obj_T*, unsigned int)> std::optional<_Up> iiopp::impl::attr(const obj_T*, unsigned int)’
249 | optional<attr_T> attr(obj_T const * obj, unsigned int idx)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:432:100: error: conversion from ‘const iio_attr* (*)(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, unsigned int)’ in a converted constant expression
432 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_device, Attr, iio_device_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:432:100: error: could not convert ‘iio_device_get_attr’ from ‘const iio_attr*(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, unsigned int)’
432 | optional<Attr> attr(unsigned int idx) {return impl::attr<iio_device, Attr, iio_device_get_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| const iio_attr*(const iio_device*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::optional<int> iiopp::Device::debug_attr(iiopp::cstr)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:458:116: error: no matching function for call to ‘attr<iio_device, iiopp::Device::DebugAttr, iio_device_find_debug_attr>(iio_device* const&, iiopp::cstr&)’
458 | optional<DebugAttr> debug_attr(cstr name) {return impl::attr<iio_device, DebugAttr, iio_device_find_debug_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* find_attr_T)(const obj_T*, const char*)> std::optional<_Up> iiopp::impl::attr(const obj_T*, iiopp::cstr)’
240 | optional<attr_T> attr(obj_T const * obj, cstr name)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:458:116: error: conversion from ‘const iio_attr* (*)(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, const char*)’ in a converted constant expression
458 | optional<DebugAttr> debug_attr(cstr name) {return impl::attr<iio_device, DebugAttr, iio_device_find_debug_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:458:116: error: could not convert ‘iio_device_find_debug_attr’ from ‘const iio_attr*(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, const char*)’
458 | optional<DebugAttr> debug_attr(cstr name) {return impl::attr<iio_device, DebugAttr, iio_device_find_debug_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_attr*(const iio_device*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* get_attr_T)(const obj_T*, unsigned int)> std::optional<_Up> iiopp::impl::attr(const obj_T*, unsigned int)’
249 | optional<attr_T> attr(obj_T const * obj, unsigned int idx)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:458:116: error: conversion from ‘const iio_attr* (*)(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, unsigned int)’ in a converted constant expression
458 | optional<DebugAttr> debug_attr(cstr name) {return impl::attr<iio_device, DebugAttr, iio_device_find_debug_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:458:116: error: could not convert ‘iio_device_find_debug_attr’ from ‘const iio_attr*(const iio_device*, const char*)’ to ‘const char* (*)(const iio_device*, unsigned int)’
458 | optional<DebugAttr> debug_attr(cstr name) {return impl::attr<iio_device, DebugAttr, iio_device_find_debug_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_attr*(const iio_device*, const char*)
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::optional<int> iiopp::Device::debug_attr(unsigned int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:459:122: error: no matching function for call to ‘attr<iio_device, iiopp::Device::DebugAttr, iio_device_get_debug_attr>(iio_device* const&, unsigned int&)’
459 | optional<DebugAttr> debug_attr(unsigned int idx) {return impl::attr<iio_device, DebugAttr, iio_device_get_debug_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* find_attr_T)(const obj_T*, const char*)> std::optional<_Up> iiopp::impl::attr(const obj_T*, iiopp::cstr)’
240 | optional<attr_T> attr(obj_T const * obj, cstr name)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:459:122: error: conversion from ‘const iio_attr* (*)(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, const char*)’ in a converted constant expression
459 | optional<DebugAttr> debug_attr(unsigned int idx) {return impl::attr<iio_device, DebugAttr, iio_device_get_debug_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:459:122: error: could not convert ‘iio_device_get_debug_attr’ from ‘const iio_attr*(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, const char*)’
459 | optional<DebugAttr> debug_attr(unsigned int idx) {return impl::attr<iio_device, DebugAttr, iio_device_get_debug_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| const iio_attr*(const iio_device*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* get_attr_T)(const obj_T*, unsigned int)> std::optional<_Up> iiopp::impl::attr(const obj_T*, unsigned int)’
249 | optional<attr_T> attr(obj_T const * obj, unsigned int idx)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:459:122: error: conversion from ‘const iio_attr* (*)(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, unsigned int)’ in a converted constant expression
459 | optional<DebugAttr> debug_attr(unsigned int idx) {return impl::attr<iio_device, DebugAttr, iio_device_get_debug_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:459:122: error: could not convert ‘iio_device_get_debug_attr’ from ‘const iio_attr*(const iio_device*, unsigned int)’ to ‘const char* (*)(const iio_device*, unsigned int)’
459 | optional<DebugAttr> debug_attr(unsigned int idx) {return impl::attr<iio_device, DebugAttr, iio_device_get_debug_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| const iio_attr*(const iio_device*, unsigned int)
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::optional<int> iiopp::Device::buffer_attr(iiopp::cstr)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:485:92: error: ‘iio_device_find_buffer_attr’ was not declared in this scope; did you mean ‘iio_device_find_debug_attr’?
485 | optional<BufferAttr> buffer_attr(cstr name) {return impl::attr<iio_device, BufferAttr, iio_device_find_buffer_attr>(p, name);}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_find_debug_attr
/home/matvei/libiio/bindings/cpp/./iiopp.h:485:120: error: no matching function for call to ‘attr<iio_device, iiopp::Device::BufferAttr, <expression error> >(iio_device* const&, iiopp::cstr&)’
485 | optional<BufferAttr> buffer_attr(cstr name) {return impl::attr<iio_device, BufferAttr, iio_device_find_buffer_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* find_attr_T)(const obj_T*, const char*)> std::optional<_Up> iiopp::impl::attr(const obj_T*, iiopp::cstr)’
240 | optional<attr_T> attr(obj_T const * obj, cstr name)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:485:120: error: template argument 3 is invalid
485 | optional<BufferAttr> buffer_attr(cstr name) {return impl::attr<iio_device, BufferAttr, iio_device_find_buffer_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* get_attr_T)(const obj_T*, unsigned int)> std::optional<_Up> iiopp::impl::attr(const obj_T*, unsigned int)’
249 | optional<attr_T> attr(obj_T const * obj, unsigned int idx)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:485:120: error: template argument 3 is invalid
485 | optional<BufferAttr> buffer_attr(cstr name) {return impl::attr<iio_device, BufferAttr, iio_device_find_buffer_attr>(p, name);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::optional<int> iiopp::Device::buffer_attr(unsigned int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:486:99: error: ‘iio_device_get_buffer_attr’ was not declared in this scope; did you mean ‘iio_device_get_debug_attr’?
486 | optional<BufferAttr> buffer_attr(unsigned int idx) {return impl::attr<iio_device, BufferAttr, iio_device_get_buffer_attr>(p, idx);}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_get_debug_attr
/home/matvei/libiio/bindings/cpp/./iiopp.h:486:126: error: no matching function for call to ‘attr<iio_device, iiopp::Device::BufferAttr, <expression error> >(iio_device* const&, unsigned int&)’
486 | optional<BufferAttr> buffer_attr(unsigned int idx) {return impl::attr<iio_device, BufferAttr, iio_device_get_buffer_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* find_attr_T)(const obj_T*, const char*)> std::optional<_Up> iiopp::impl::attr(const obj_T*, iiopp::cstr)’
240 | optional<attr_T> attr(obj_T const * obj, cstr name)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:240:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:486:126: error: template argument 3 is invalid
486 | optional<BufferAttr> buffer_attr(unsigned int idx) {return impl::attr<iio_device, BufferAttr, iio_device_get_buffer_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: candidate: ‘template<class obj_T, class attr_T, const char* (* get_attr_T)(const obj_T*, unsigned int)> std::optional<_Up> iiopp::impl::attr(const obj_T*, unsigned int)’
249 | optional<attr_T> attr(obj_T const * obj, unsigned int idx)
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:249:18: note: template argument deduction/substitution failed:
/home/matvei/libiio/bindings/cpp/./iiopp.h:486:126: error: template argument 3 is invalid
486 | optional<BufferAttr> buffer_attr(unsigned int idx) {return impl::attr<iio_device, BufferAttr, iio_device_get_buffer_attr>(p, idx);}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In constructor ‘iiopp::Device::Device(iio_device*)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:491:46: error: invalid conversion from ‘iio_device*’ to ‘iiopp::Device::AttrSeq’ {aka ‘int’} [-fpermissive]
491 | Device(iio_device * dev) : p(dev), attrs(dev), debug_attrs(dev), buffer_attrs(dev){}
| ^~~
| |
| iio_device*
/home/matvei/libiio/bindings/cpp/./iiopp.h:491:64: error: invalid conversion from ‘iio_device*’ to ‘iiopp::Device::DebugAttrSeq’ {aka ‘int’} [-fpermissive]
491 | Device(iio_device * dev) : p(dev), attrs(dev), debug_attrs(dev), buffer_attrs(dev){}
| ^~~
| |
| iio_device*
/home/matvei/libiio/bindings/cpp/./iiopp.h:491:83: error: invalid conversion from ‘iio_device*’ to ‘iiopp::Device::BufferAttrSeq’ {aka ‘int’} [-fpermissive]
491 | Device(iio_device * dev) : p(dev), attrs(dev), debug_attrs(dev), buffer_attrs(dev){}
| ^~~
| |
| iio_device*
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::optstr iiopp::Device::find_attr(iiopp::cstr) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:494:77: error: cannot convert ‘const iio_attr*’ to ‘const char*’
494 | optstr find_attr(cstr name) const {return impl::opt(iio_device_find_attr(p, name));}
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_attr*
/home/matvei/libiio/bindings/cpp/./iiopp.h:132:32: note: initializing argument 1 of ‘iiopp::optstr iiopp::impl::opt(const char*)’
132 | inline optstr opt(char const * s)
| ~~~~~~~~~~~~~^
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::optstr iiopp::Device::find_buffer_attr(iiopp::cstr) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:495:64: error: ‘iio_device_find_buffer_attr’ was not declared in this scope; did you mean ‘iio_device_find_debug_attr’?
495 | optstr find_buffer_attr(cstr name) const {return impl::opt(iio_device_find_buffer_attr(p, name));}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_find_debug_attr
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘unsigned int iiopp::Device::buffer_attrs_count() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:498:53: error: ‘iio_device_get_buffer_attrs_count’ was not declared in this scope; did you mean ‘iio_device_get_debug_attrs_count’?
498 | unsigned int buffer_attrs_count() const {return iio_device_get_buffer_attrs_count(p);}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_device_get_debug_attrs_count
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::Device iiopp::Device::trigger() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:506:87: error: too many arguments to function ‘const iio_device* iio_device_get_trigger(const iio_device*)’
506 | Device trigger() const {iio_device const * ret; impl::check(iio_device_get_trigger(p, &ret), "iio_device_get_trigger"); return const_cast<iio_device*>(ret);}
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/matvei/libiio/include/iio/iio.h:828:1: note: declared here
828 | iio_device_get_trigger(const struct iio_device *dev);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:506:87: error: invalid conversion from ‘const iio_device*’ to ‘int’ [-fpermissive]
506 | Device trigger() const {iio_device const * ret; impl::check(iio_device_get_trigger(p, &ret), "iio_device_get_trigger"); return const_cast<iio_device*>(ret);}
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const iio_device*
/home/matvei/libiio/bindings/cpp/./iiopp.h:150:23: note: initializing argument 1 of ‘void iiopp::impl::check(int, const char*)’
150 | inline void check(int ret, char const * ctx)
| ~~~~^~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘void iiopp::Device::set_kernel_buffers_count(unsigned int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:509:73: error: ‘iio_device_set_kernel_buffers_count’ was not declared in this scope; did you mean ‘set_kernel_buffers_count’?
509 | void set_kernel_buffers_count(unsigned int nb_buffers) {impl::check(iio_device_set_kernel_buffers_count(p, nb_buffers), "iio_device_set_kernel_buffers_count");}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| set_kernel_buffers_count
[ 80%] Building C object utils/CMakeFiles/iio_stresstest.dir/iio_stresstest.c.o
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::shared_ptr<iiopp::Buffer> iiopp::Device::create_buffer(size_t, bool)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:513:74: error: cannot convert ‘bool’ to ‘const iio_channels_mask*’
513 | iio_buffer * buffer = iio_device_create_buffer(p, samples_count, cyclic);
| ^~~~~~
| |
| bool
/home/matvei/libiio/include/iio/iio.h:1046:58: note: initializing argument 3 of ‘iio_buffer* iio_device_create_buffer(const iio_device*, unsigned int, const iio_channels_mask*)’
1046 | const struct iio_channels_mask *mask);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::shared_ptr<iiopp::Context> iiopp::Context::clone() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:551:29: error: ‘iio_context_clone’ was not declared in this scope; did you mean ‘iio_context_params’?
551 | iio_context * ctx = iio_context_clone(p);
| ^~~~~~~~~~~~~~~~~
| iio_context_params
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::pair<iiopp::cstr, iiopp::cstr> iiopp::Context::attr(unsigned int) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:562:41: error: too many arguments to function ‘const iio_attr* iio_context_get_attr(const iio_context*, unsigned int)’
562 | impl::check(iio_context_get_attr(p, idx, &name, &value), "iio_context_get_attr");
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/include/iio/iio.h:641:1: note: declared here
641 | iio_context_get_attr(const struct iio_context *ctx, unsigned int index);
| ^~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:562:41: error: invalid conversion from ‘const iio_attr*’ to ‘int’ [-fpermissive]
562 | impl::check(iio_context_get_attr(p, idx, &name, &value), "iio_context_get_attr");
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
| |
| const iio_attr*
/home/matvei/libiio/bindings/cpp/./iiopp.h:150:23: note: initializing argument 1 of ‘void iiopp::impl::check(int, const char*)’
150 | inline void check(int ret, char const * ctx)
| ~~~~^~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::optstr iiopp::Context::attr_value(iiopp::cstr) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:565:58: error: ‘iio_context_get_attr_value’ was not declared in this scope; did you mean ‘iio_context_get_attrs_count’?
565 | optstr attr_value(cstr name) const {return impl::opt(iio_context_get_attr_value(p, name));}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_context_get_attrs_count
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::Context::Version iiopp::Context::version() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:584:21: error: ‘iio_context_get_version’ was not declared in this scope; did you mean ‘iio_context_get_version_tag’?
584 | impl::check(iio_context_get_version(p, &ver.major, &ver.minor, git_tag), "iio_context_get_version");
| ^~~~~~~~~~~~~~~~~~~~~~~
| iio_context_get_version_tag
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘size_t iiopp::Channel::read(iiopp::Buffer, void*, size_t) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:596:102: error: cannot convert ‘iiopp::Buffer’ to ‘const iio_block*’
596 | inline size_t Channel::read(Buffer buffer, void * dst, size_t len) const {return iio_channel_read(p, buffer, dst, len);} // Flawfinder: ignore
| ^~~~~~
| |
| iiopp::Buffer
/home/matvei/libiio/include/iio/iio.h:951:67: note: initializing argument 2 of ‘size_t iio_channel_read(const iio_channel*, const iio_block*, void*, size_t, bool)’
951 | const struct iio_block *block,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
[ 81%] Linking C executable iio_event
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘size_t iiopp::Channel::read_raw(iiopp::Buffer, void*, size_t) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:597:86: error: ‘iio_channel_read_raw’ was not declared in this scope; did you mean ‘iio_channel_read’?
597 | inline size_t Channel::read_raw(Buffer buffer, void * dst, size_t len) const {return iio_channel_read_raw(p, buffer, dst, len);}
| ^~~~~~~~~~~~~~~~~~~~
| iio_channel_read
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘size_t iiopp::Channel::write(iiopp::Buffer, const void*, size_t)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:598:104: error: cannot convert ‘iiopp::Buffer’ to ‘iio_block*’
598 | inline size_t Channel::write(Buffer buffer, void const * src, size_t len) {return iio_channel_write(p, buffer, src, len);}
| ^~~~~~
| |
| iiopp::Buffer
/home/matvei/libiio/include/iio/iio.h:965:62: note: initializing argument 2 of ‘size_t iio_channel_write(const iio_channel*, iio_block*, const void*, size_t, bool)’
965 | struct iio_block *block,
| ~~~~~~~~~~~~~~~~~~^~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘size_t iiopp::Channel::write_raw(iiopp::Buffer, const void*, size_t)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:599:87: error: ‘iio_channel_write_raw’ was not declared in this scope; did you mean ‘iio_channel_write’?
599 | inline size_t Channel::write_raw(Buffer buffer, void const * src, size_t len) {return iio_channel_write_raw(p, buffer, src, len);}
| ^~~~~~~~~~~~~~~~~~~~~
| iio_channel_write
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::Context> iiopp::create_from_uri(cstr)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:624:25: error: ‘iio_create_context_from_uri’ was not declared in this scope; did you mean ‘iio_create_context’?
624 | iio_context * ctx = iio_create_context_from_uri(uri);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_create_context
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::Context> iiopp::create_default_context()’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:635:25: error: ‘iio_create_default_context’ was not declared in this scope; did you mean ‘create_default_context’?
635 | iio_context * ctx = iio_create_default_context();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| create_default_context
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::Context> iiopp::create_local_context()’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:646:25: error: ‘iio_create_local_context’ was not declared in this scope; did you mean ‘create_local_context’?
646 | iio_context * ctx = iio_create_local_context();
| ^~~~~~~~~~~~~~~~~~~~~~~~
| create_local_context
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::Context> iiopp::create_network_context(cstr)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:657:25: error: ‘iio_create_network_context’ was not declared in this scope; did you mean ‘create_network_context’?
657 | iio_context * ctx = iio_create_network_context(host);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| create_network_context
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::Context> iiopp::create_xml_context(cstr)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:668:25: error: ‘iio_create_xml_context’ was not declared in this scope; did you mean ‘create_xml_context’?
668 | iio_context * ctx = iio_create_xml_context(xml_file);
| ^~~~~~~~~~~~~~~~~~~~~~
| create_xml_context
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::Context> iiopp::create_xml_context_mem(const char*, size_t)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:679:25: error: ‘iio_create_xml_context_mem’ was not declared in this scope; did you mean ‘create_xml_context_mem’?
679 | iio_context * ctx = iio_create_xml_context_mem(xml, len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| create_xml_context_mem
/home/matvei/libiio/bindings/cpp/./iiopp.h: At global scope:
/home/matvei/libiio/bindings/cpp/./iiopp.h:688:5: error: ‘iio_context_info’ does not name a type; did you mean ‘iio_context’?
688 | iio_context_info const * const p;
| ^~~~~~~~~~~~~~~~
| iio_context
/home/matvei/libiio/bindings/cpp/./iiopp.h:691:33: error: expected ‘)’ before ‘const’
691 | ContextInfo(iio_context_info const * i) : p(i){assert(i);}
| ~ ^~~~~~
| )
/home/matvei/libiio/bindings/cpp/./iiopp.h:692:14: error: ‘iio_context_info’ does not name a type; did you mean ‘iio_context’?
692 | operator iio_context_info const * () const {return p;}
| ^~~~~~~~~~~~~~~~
| iio_context
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::cstr iiopp::ContextInfo::description() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:694:71: error: ‘p’ was not declared in this scope
694 | cstr description() const {return iio_context_info_get_description(p);}
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:694:38: error: ‘iio_context_info_get_description’ was not declared in this scope; did you mean ‘iio_context_get_description’?
694 | cstr description() const {return iio_context_info_get_description(p);}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_context_get_description
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::cstr iiopp::ContextInfo::uri() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:695:55: error: ‘p’ was not declared in this scope
695 | cstr uri() const {return iio_context_info_get_uri(p);}
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:695:30: error: ‘iio_context_info_get_uri’ was not declared in this scope; did you mean ‘iio_context_get_xml’?
695 | cstr uri() const {return iio_context_info_get_uri(p);}
| ^~~~~~~~~~~~~~~~~~~~~~~~
| iio_context_get_xml
/home/matvei/libiio/bindings/cpp/./iiopp.h: At global scope:
/home/matvei/libiio/bindings/cpp/./iiopp.h:700:5: error: ‘iio_scan_context’ does not name a type; did you mean ‘iio_context’?
700 | iio_scan_context * const p;
| ^~~~~~~~~~~~~~~~
| iio_context
/home/matvei/libiio/bindings/cpp/./iiopp.h:703:33: error: expected ‘)’ before ‘*’ token
703 | ScanContext(iio_scan_context * ctx) : p(ctx){assert(ctx);}
| ~ ^~
| )
/home/matvei/libiio/bindings/cpp/./iiopp.h:704:14: error: ‘iio_scan_context’ does not name a type; did you mean ‘iio_context’?
704 | operator iio_scan_context * () const {return p;}
| ^~~~~~~~~~~~~~~~
| iio_context
/home/matvei/libiio/bindings/cpp/./iiopp.h:708:9: error: ‘iio_context_info’ does not name a type; did you mean ‘iio_context’?
708 | iio_context_info ** const p;
| ^~~~~~~~~~~~~~~~
| iio_context
/home/matvei/libiio/bindings/cpp/./iiopp.h:712:34: error: expected ‘)’ before ‘*’ token
712 | InfoList(iio_context_info ** p, size_t n) : p(p), n(n){assert(p);}
| ~ ^~
| )
/home/matvei/libiio/bindings/cpp/./iiopp.h:713:18: error: ‘iio_context_info’ does not name a type; did you mean ‘iio_context’?
713 | operator iio_context_info ** () const {return p;}
| ^~~~~~~~~~~~~~~~
| iio_context
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::ContextInfo iiopp::ScanContext::InfoList::operator[](size_t) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:722:32: error: ‘p’ was not declared in this scope
722 | return ContextInfo(p[i]);
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::shared_ptr<iiopp::ScanContext::InfoList> iiopp::ScanContext::info_list() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:728:9: error: ‘iio_context_info’ was not declared in this scope; did you mean ‘iio_context’?
728 | iio_context_info ** lst;
| ^~~~~~~~~~~~~~~~
| iio_context
/home/matvei/libiio/bindings/cpp/./iiopp.h:728:29: error: ‘lst’ was not declared in this scope
728 | iio_context_info ** lst;
| ^~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:729:58: error: ‘p’ was not declared in this scope
729 | ssize_t const n = iio_scan_context_get_info_list(p, &lst);
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:729:27: error: ‘iio_scan_context_get_info_list’ was not declared in this scope
729 | ssize_t const n = iio_scan_context_get_info_list(p, &lst);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In lambda function:
/home/matvei/libiio/bindings/cpp/./iiopp.h:737:17: error: ‘iio_context_info_list_free’ was not declared in this scope
737 | iio_context_info_list_free(*lst);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘std::shared_ptr<iiopp::ScanContext::InfoList> iiopp::ScanContext::info_list() const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:742:71: error: no matching function for call to ‘std::shared_ptr<iiopp::ScanContext::InfoList>::shared_ptr(<brace-enclosed initializer list>)’
742 | return std::shared_ptr<InfoList>{new InfoList(lst, n), deleter};
| ^
In file included from /usr/include/c++/12/memory:76,
from /home/matvei/libiio/bindings/cpp/./iiopp.h:28:
/usr/include/c++/12/bits/shared_ptr.h:463:9: note: candidate: ‘template<class _Alloc, class ... _Args> std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Args = _Alloc; _Tp = iiopp::ScanContext::InfoList]’
463 | shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:463:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:395:9: note: candidate: ‘template<class _Yp, class _Del, class> std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Del = _Yp; <template-parameter-2-3> = _Del; _Tp = iiopp::ScanContext::InfoList]’
395 | shared_ptr(unique_ptr<_Yp, _Del>&& __r)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:395:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:387:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Up>&&) [with _Yp = _Tp1; _Tp = iiopp::ScanContext::InfoList]’
387 | shared_ptr(auto_ptr<_Yp>&& __r);
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:387:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:380:18: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Yp>&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanContext::InfoList]’
380 | explicit shared_ptr(const weak_ptr<_Yp>& __r)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:380:18: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:368:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Yp>&&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanContext::InfoList]’
368 | shared_ptr(shared_ptr<_Yp>&& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:368:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:351:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanContext::InfoList]’
351 | shared_ptr(const shared_ptr<_Yp>& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:351:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:311:9: note: candidate: ‘template<class _Yp> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&, element_type*) [with _Tp = iiopp::ScanContext::InfoList]’
311 | shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:311:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:287:9: note: candidate: ‘template<class _Deleter, class _Alloc> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter, _Alloc) [with _Alloc = _Deleter; _Tp = iiopp::ScanContext::InfoList]’
287 | shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:287:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:268:9: note: candidate: ‘template<class _Yp, class _Deleter, class _Alloc, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter, _Alloc) [with _Deleter = _Yp; _Alloc = _Deleter; <template-parameter-2-4> = _Alloc; _Tp = iiopp::ScanContext::InfoList]’
268 | shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:268:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:248:9: note: candidate: ‘template<class _Deleter> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter) [with _Tp = iiopp::ScanContext::InfoList]’
248 | shared_ptr(nullptr_t __p, _Deleter __d)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:248:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:231:9: note: candidate: ‘template<class _Yp, class _Deleter, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter) [with _Deleter = _Yp; <template-parameter-2-3> = _Deleter; _Tp = iiopp::ScanContext::InfoList]’
231 | shared_ptr(_Yp* __p, _Deleter __d)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:231:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:214:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanContext::InfoList]’
214 | shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:214:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:535:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Tp>&, std::nothrow_t) [with _Tp = iiopp::ScanContext::InfoList]’
535 | shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:535:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/12/bits/shared_ptr.h:412:17: note: candidate: ‘constexpr std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t) [with _Tp = iiopp::ScanContext::InfoList; std::nullptr_t = std::nullptr_t]’
412 | constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:412:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:359:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Tp>&&) [with _Tp = iiopp::ScanContext::InfoList]’
359 | shared_ptr(shared_ptr&& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:359:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:204:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Tp>&) [with _Tp = iiopp::ScanContext::InfoList]’
204 | shared_ptr(const shared_ptr&) noexcept = default; ///< Copy constructor
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:204:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:202:17: note: candidate: ‘constexpr std::shared_ptr<_Tp>::shared_ptr() [with _Tp = iiopp::ScanContext::InfoList]’
202 | constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:202:17: note: candidate expects 0 arguments, 2 provided
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::ScanContext> iiopp::create_scan_context(optstr, int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:748:5: error: ‘iio_scan_context’ was not declared in this scope; did you mean ‘iio_create_context’?
748 | iio_scan_context * ctx = iio_create_scan_context(backend ? static_cast<char const*>(*backend) : nullptr, flags);
| ^~~~~~~~~~~~~~~~
| iio_create_context
/home/matvei/libiio/bindings/cpp/./iiopp.h:748:24: error: ‘ctx’ was not declared in this scope
748 | iio_scan_context * ctx = iio_create_scan_context(backend ? static_cast<char const*>(*backend) : nullptr, flags);
| ^~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:748:30: error: ‘iio_create_scan_context’ was not declared in this scope; did you mean ‘create_scan_context’?
748 | iio_scan_context * ctx = iio_create_scan_context(backend ? static_cast<char const*>(*backend) : nullptr, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| create_scan_context
/home/matvei/libiio/bindings/cpp/./iiopp.h: In lambda function:
/home/matvei/libiio/bindings/cpp/./iiopp.h:755:13: error: ‘iio_scan_context_destroy’ was not declared in this scope; did you mean ‘iio_context_destroy’?
755 | iio_scan_context_destroy(*ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| iio_context_destroy
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::ScanContext> iiopp::create_scan_context(optstr, int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:760:70: error: no matching function for call to ‘std::shared_ptr<iiopp::ScanContext>::shared_ptr(<brace-enclosed initializer list>)’
760 | return std::shared_ptr<ScanContext>{new ScanContext(ctx), deleter};
| ^
/usr/include/c++/12/bits/shared_ptr.h:463:9: note: candidate: ‘template<class _Alloc, class ... _Args> std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Args = _Alloc; _Tp = iiopp::ScanContext]’
463 | shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:463:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:395:9: note: candidate: ‘template<class _Yp, class _Del, class> std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Del = _Yp; <template-parameter-2-3> = _Del; _Tp = iiopp::ScanContext]’
395 | shared_ptr(unique_ptr<_Yp, _Del>&& __r)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:395:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:387:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Up>&&) [with _Yp = _Tp1; _Tp = iiopp::ScanContext]’
387 | shared_ptr(auto_ptr<_Yp>&& __r);
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:387:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:380:18: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Yp>&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanContext]’
380 | explicit shared_ptr(const weak_ptr<_Yp>& __r)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:380:18: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:368:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Yp>&&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanContext]’
368 | shared_ptr(shared_ptr<_Yp>&& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:368:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:351:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanContext]’
351 | shared_ptr(const shared_ptr<_Yp>& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:351:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:311:9: note: candidate: ‘template<class _Yp> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&, element_type*) [with _Tp = iiopp::ScanContext]’
311 | shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:311:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:287:9: note: candidate: ‘template<class _Deleter, class _Alloc> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter, _Alloc) [with _Alloc = _Deleter; _Tp = iiopp::ScanContext]’
287 | shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:287:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:268:9: note: candidate: ‘template<class _Yp, class _Deleter, class _Alloc, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter, _Alloc) [with _Deleter = _Yp; _Alloc = _Deleter; <template-parameter-2-4> = _Alloc; _Tp = iiopp::ScanContext]’
268 | shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:268:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:248:9: note: candidate: ‘template<class _Deleter> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter) [with _Tp = iiopp::ScanContext]’
248 | shared_ptr(nullptr_t __p, _Deleter __d)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:248:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:231:9: note: candidate: ‘template<class _Yp, class _Deleter, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter) [with _Deleter = _Yp; <template-parameter-2-3> = _Deleter; _Tp = iiopp::ScanContext]’
231 | shared_ptr(_Yp* __p, _Deleter __d)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:231:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:214:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanContext]’
214 | shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:214:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:535:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Tp>&, std::nothrow_t) [with _Tp = iiopp::ScanContext]’
535 | shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:535:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/12/bits/shared_ptr.h:412:17: note: candidate: ‘constexpr std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t) [with _Tp = iiopp::ScanContext; std::nullptr_t = std::nullptr_t]’
412 | constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:412:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:359:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Tp>&&) [with _Tp = iiopp::ScanContext]’
359 | shared_ptr(shared_ptr&& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:359:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:204:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Tp>&) [with _Tp = iiopp::ScanContext]’
204 | shared_ptr(const shared_ptr&) noexcept = default; ///< Copy constructor
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:204:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:202:17: note: candidate: ‘constexpr std::shared_ptr<_Tp>::shared_ptr() [with _Tp = iiopp::ScanContext]’
202 | constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:202:17: note: candidate expects 0 arguments, 2 provided
/home/matvei/libiio/bindings/cpp/./iiopp.h: At global scope:
/home/matvei/libiio/bindings/cpp/./iiopp.h:765:5: error: ‘iio_scan_block’ does not name a type; did you mean ‘iio_block’?
765 | iio_scan_block * const p;
| ^~~~~~~~~~~~~~
| iio_block
/home/matvei/libiio/bindings/cpp/./iiopp.h:769:29: error: expected ‘)’ before ‘*’ token
769 | ScanBlock(iio_scan_block * blk) : p(blk), n(impl::check_n(iio_scan_block_scan(blk), "iio_scan_block_scan")){assert(blk);}
| ~ ^~
| )
/home/matvei/libiio/bindings/cpp/./iiopp.h:770:14: error: ‘iio_scan_block’ does not name a type; did you mean ‘iio_block’?
770 | operator iio_scan_block * () const {return p;}
| ^~~~~~~~~~~~~~
| iio_block
/home/matvei/libiio/bindings/cpp/./iiopp.h: In member function ‘iiopp::ContextInfo iiopp::ScanBlock::operator[](unsigned int) const’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:777:13: error: ‘iio_context_info’ was not declared in this scope; did you mean ‘iio_context’?
777 | if (iio_context_info * info = iio_scan_block_get_info(p, i))
| ^~~~~~~~~~~~~~~~
| iio_context
/home/matvei/libiio/bindings/cpp/./iiopp.h:777:32: error: ‘info’ was not declared in this scope
777 | if (iio_context_info * info = iio_scan_block_get_info(p, i))
| ^~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:777:63: error: ‘p’ was not declared in this scope
777 | if (iio_context_info * info = iio_scan_block_get_info(p, i))
| ^
/home/matvei/libiio/bindings/cpp/./iiopp.h:777:39: error: ‘iio_scan_block_get_info’ was not declared in this scope
777 | if (iio_context_info * info = iio_scan_block_get_info(p, i))
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::ScanBlock> iiopp::create_scan_block(optstr, int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:786:5: error: ‘iio_scan_block’ was not declared in this scope; did you mean ‘iio_block’?
786 | iio_scan_block * blk = iio_create_scan_block(backend ? static_cast<char const*>(*backend) : nullptr, flags);
| ^~~~~~~~~~~~~~
| iio_block
/home/matvei/libiio/bindings/cpp/./iiopp.h:786:22: error: ‘blk’ was not declared in this scope
786 | iio_scan_block * blk = iio_create_scan_block(backend ? static_cast<char const*>(*backend) : nullptr, flags);
| ^~~
/home/matvei/libiio/bindings/cpp/./iiopp.h:786:28: error: ‘iio_create_scan_block’ was not declared in this scope; did you mean ‘create_scan_block’?
786 | iio_scan_block * blk = iio_create_scan_block(backend ? static_cast<char const*>(*backend) : nullptr, flags);
| ^~~~~~~~~~~~~~~~~~~~~
| create_scan_block
/home/matvei/libiio/bindings/cpp/./iiopp.h: In lambda function:
/home/matvei/libiio/bindings/cpp/./iiopp.h:793:13: error: ‘iio_scan_block_destroy’ was not declared in this scope; did you mean ‘iio_block_destroy’?
793 | iio_scan_block_destroy(*blk);
| ^~~~~~~~~~~~~~~~~~~~~~
| iio_block_destroy
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘std::shared_ptr<iiopp::ScanBlock> iiopp::create_scan_block(optstr, int)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:798:66: error: no matching function for call to ‘std::shared_ptr<iiopp::ScanBlock>::shared_ptr(<brace-enclosed initializer list>)’
798 | return std::shared_ptr<ScanBlock>{new ScanBlock(blk), deleter};
| ^
/usr/include/c++/12/bits/shared_ptr.h:463:9: note: candidate: ‘template<class _Alloc, class ... _Args> std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Args = _Alloc; _Tp = iiopp::ScanBlock]’
463 | shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:463:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:395:9: note: candidate: ‘template<class _Yp, class _Del, class> std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Del = _Yp; <template-parameter-2-3> = _Del; _Tp = iiopp::ScanBlock]’
395 | shared_ptr(unique_ptr<_Yp, _Del>&& __r)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:395:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:387:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Up>&&) [with _Yp = _Tp1; _Tp = iiopp::ScanBlock]’
387 | shared_ptr(auto_ptr<_Yp>&& __r);
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:387:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:380:18: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Yp>&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanBlock]’
380 | explicit shared_ptr(const weak_ptr<_Yp>& __r)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:380:18: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:368:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Yp>&&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanBlock]’
368 | shared_ptr(shared_ptr<_Yp>&& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:368:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:351:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanBlock]’
351 | shared_ptr(const shared_ptr<_Yp>& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:351:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:311:9: note: candidate: ‘template<class _Yp> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&, element_type*) [with _Tp = iiopp::ScanBlock]’
311 | shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:311:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:287:9: note: candidate: ‘template<class _Deleter, class _Alloc> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter, _Alloc) [with _Alloc = _Deleter; _Tp = iiopp::ScanBlock]’
287 | shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:287:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:268:9: note: candidate: ‘template<class _Yp, class _Deleter, class _Alloc, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter, _Alloc) [with _Deleter = _Yp; _Alloc = _Deleter; <template-parameter-2-4> = _Alloc; _Tp = iiopp::ScanBlock]’
268 | shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:268:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:248:9: note: candidate: ‘template<class _Deleter> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter) [with _Tp = iiopp::ScanBlock]’
248 | shared_ptr(nullptr_t __p, _Deleter __d)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:248:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:231:9: note: candidate: ‘template<class _Yp, class _Deleter, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter) [with _Deleter = _Yp; <template-parameter-2-3> = _Deleter; _Tp = iiopp::ScanBlock]’
231 | shared_ptr(_Yp* __p, _Deleter __d)
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:231:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:214:9: note: candidate: ‘template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*) [with <template-parameter-2-2> = _Yp; _Tp = iiopp::ScanBlock]’
214 | shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:214:9: note: template argument deduction/substitution failed:
/usr/include/c++/12/bits/shared_ptr.h:535:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Tp>&, std::nothrow_t) [with _Tp = iiopp::ScanBlock]’
535 | shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:535:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/12/bits/shared_ptr.h:412:17: note: candidate: ‘constexpr std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t) [with _Tp = iiopp::ScanBlock; std::nullptr_t = std::nullptr_t]’
412 | constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:412:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:359:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Tp>&&) [with _Tp = iiopp::ScanBlock]’
359 | shared_ptr(shared_ptr&& __r) noexcept
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:359:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:204:7: note: candidate: ‘std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Tp>&) [with _Tp = iiopp::ScanBlock]’
204 | shared_ptr(const shared_ptr&) noexcept = default; ///< Copy constructor
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:204:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/12/bits/shared_ptr.h:202:17: note: candidate: ‘constexpr std::shared_ptr<_Tp>::shared_ptr() [with _Tp = iiopp::ScanBlock]’
202 | constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { }
| ^~~~~~~~~~
/usr/include/c++/12/bits/shared_ptr.h:202:17: note: candidate expects 0 arguments, 2 provided
/home/matvei/libiio/bindings/cpp/./iiopp.h: In function ‘double iiopp::value(Channel)’:
/home/matvei/libiio/bindings/cpp/./iiopp.h:810:14: error: ‘iio_channel_attr_read_double’ was not declared in this scope; did you mean ‘iio_attr_read_double’?
810 | if (!iio_channel_attr_read_double(ch, "input", &val))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_read_double
/home/matvei/libiio/bindings/cpp/./iiopp.h:815:5: error: ‘iio_channel_attr_read_double’ was not declared in this scope; did you mean ‘iio_attr_read_double’?
815 | iio_channel_attr_read_double(ch, "scale", &scale);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| iio_attr_read_double
[ 82%] Linking C executable iio_attr
[ 82%] Built target iio_event
[ 83%] Building C object examples/CMakeFiles/ad9361-iiostream.dir/ad9361-iiostream.c.o
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp: In function ‘void enumerateIioEntities()’:
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:45:32: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
45 | for (auto att : device.attrs)
| ^~~~~
| std::begin
In file included from /usr/include/c++/12/string:52,
from /home/matvei/libiio/bindings/cpp/./iiopp.h:18:
/usr/include/c++/12/bits/range_access.h:114:37: note: ‘std::begin’ declared here
114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:45:32: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
45 | for (auto att : device.attrs)
| ^~~~~
| std::end
/usr/include/c++/12/bits/range_access.h:116:37: note: ‘std::end’ declared here
116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
| ^~~
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:48:32: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
48 | for (auto att : device.debug_attrs)
| ^~~~~~~~~~~
| std::begin
/usr/include/c++/12/bits/range_access.h:114:37: note: ‘std::begin’ declared here
114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:48:32: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
48 | for (auto att : device.debug_attrs)
| ^~~~~~~~~~~
| std::end
/usr/include/c++/12/bits/range_access.h:116:37: note: ‘std::end’ declared here
116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
| ^~~
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:51:32: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
51 | for (auto att : device.buffer_attrs)
| ^~~~~~~~~~~~
| std::begin
/usr/include/c++/12/bits/range_access.h:114:37: note: ‘std::begin’ declared here
114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:51:32: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
51 | for (auto att : device.buffer_attrs)
| ^~~~~~~~~~~~
| std::end
/usr/include/c++/12/bits/range_access.h:116:37: note: ‘std::end’ declared here
116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
| ^~~
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:66:37: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
66 | for (auto att : channel.attrs)
| ^~~~~
| std::begin
/usr/include/c++/12/bits/range_access.h:114:37: note: ‘std::begin’ declared here
114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~
/home/matvei/libiio/bindings/cpp/examples/iiopp-enum.cpp:66:37: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
66 | for (auto att : channel.attrs)
| ^~~~~
| std::end
/usr/include/c++/12/bits/range_access.h:116:37: note: ‘std::end’ declared here
116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
| ^~~
[ 83%] Built target iio_attr
[ 85%] Building C object examples/CMakeFiles/ad9371-iiostream.dir/ad9371-iiostream.c.o
make[2]: *** [bindings/cpp/CMakeFiles/iiopp-enum.dir/build.make:76: bindings/cpp/CMakeFiles/iiopp-enum.dir/examples/iiopp-enum.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:798: bindings/cpp/CMakeFiles/iiopp-enum.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 86%] Linking C executable iio_stresstest
[ 87%] Linking C executable ad9361-iiostream
[ 88%] Linking C executable ad9371-iiostream
[ 88%] Built target iio_stresstest
[ 88%] Built target ad9361-iiostream
[ 88%] Built target ad9371-iiostream
make: *** [Makefile:136: all] Error 2
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
I've followed the instructions as mention in file README_BUILD.md
when I run "make -j$(nproc)" it shows the following errors
I changed to #include <iio/iio.h> in libiio/bindings/cpp/./iiopp.h
and I got the following errors
Beta Was this translation helpful? Give feedback.
All reactions