Skip to content

SDL3_ttf and SDL3_image link error when using MSVC #2656

@LuMarquesIlva

Description

@LuMarquesIlva

When using MSVC it does not generate the library and fails to compile, solved by copying this from SDL3 meson.build

if get_option('default_library') == 'shared'
  extra_args = ['-DDLL_EXPORT']
else
  extra_args = []
endif

and adding c_args: extra_args in the library() part

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