Skip to content

Issues compiling with latest MSYS2 install #3

@bkt0031

Description

@bkt0031

I just attempted to compile this on a new installation of MSYS2 and it failed with:

network.c:66:2: error: conflicting types for 'IP_MREQ'; have 'struct <anonymous>'

Looking at that file I find the conditional expression:

#if !defined __MINGW64_VERSION_MAJOR || __MINGW64_VERSION_MAJOR != 11

Looking at MSYS2 version for MINGW64 I see:

MinGW-w64 version 12.0.0

My solution was to change the conditional to:

#if !defined __MINGW64_VERSION_MAJOR || __MINGW64_VERSION_MAJOR < 11

For the files: network.c, sdrip.c, openhpsdr.c, afedri.c, and cloudiq.c

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions