Skip to content

Issues cross compiling with mingw #2006

@Dariqq

Description

@Dariqq

Hello,

I tried to cross compile with mingw from linux -> windows

An example toolchain file is at https://www.mingw-w64.org/build-systems/cmake/

Issues:

  • src/modules/separator/separator.c:30:31: error: implicit declaration of function ‘mbrtoc32’

__SIZEOF_WCHAR_T seems to be 2 in both i686-w64-mingw32and x86_64-w64-mingw32 toolchains.

I think mbrtoc32 is only available in mingw when using ucrt runtime (and not msvcrt)

  • Casing in windows headers.

The headers in mingw are called windows.h, winuser.h, etc.. I think on windows this does not matter because it is case insensitive.

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