Skip to content

SDL3_ttf and SDL3_image link error when using MSVC #2656

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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