msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.31k stars 1.23k forks source link

Compliation error in enum class AxisUse in mingw-w64-i686-gtkmm4 #8010

Open nnzur opened 3 years ago

nnzur commented 3 years ago

The enum class AxidUse in enums.h contains a value named 'IGNORE' that conflicts with a define directive in windows API's WinBase.h line 729:

define IGNORE 0 // Ignore signal

Biswa96 commented 3 years ago

Which package does contain that enums.h file? Or how one can reproduce your issue?

nnzur commented 3 years ago

Sorry, I opened the issue from the package page, didn't know it will go to a common repository. The package is mingw-w64-i686-gtkmm4, added to the issue title too

Biswa96 commented 3 years ago

Please provide the steps to reproduce your issue. Also explain your other issues.

nnzur commented 3 years ago

I installed mingw-w64-i686-gtkmm4 and it's dependencies as described in https://packages.msys2.org/package/mingw-w64-i686-gtkmm4?repo=mingw32. I have an application that used gtkmm3 and I am converting it to use gtkmm4. My application compiles both on Linux and Windows. Gtkmm4 Linux libs were built with ninja and jhbuild. For Windows build I am trying to use the libs in mingw-w64-i686-gtkmm4. I have a Cmake;ists.txt file that lists the required headers and libs from gtkmm and its dependencies. I was expecting to find .lib files in the package, but I only found .a files: /mingw32/lib/libgtkmm-4.0.a /mingw32/lib/libgtkmm-4.0.dll.a

Hope that explains it.