Skip to content

Redefinition errors between libiio and kernel iio include files #758

@gwendalcr

Description

@gwendalcr

Writing an application that including libiio iio.h for handling iio buffers and kernel iio include files for handling events, there are redefinition errors between /usr/include/linux/iio/types.h and /usr/include/iio.h:

/usr/include/linux/iio/types.h:14:6: error: redefinition of 'iio_chan_type'
enum iio_chan_type {                                                          
     ^                                                                        
/usr/include/iio.h:94:6: note: previous definition is here
enum iio_chan_type {            
     ^              

When compiling on linux architecture, would it make sense for ./iio.h to include <linux/iio/types.h>?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions