Skip to content

Unable to rebuild for Windows  #39

@giuppe

Description

@giuppe

This is the same issue as https://github.com/haxelime/lime/issues/875 .

If you try to rebuild via lime rebuild systools windows, you get an error because of a missing reference to the sprintf function. That function was removed from default MSVC libs some years ago, to nudge developers into using more secure version of those functions (like sprintf_s)
https://docs.microsoft.com/en-us/cpp/c-runtime-library/secure-template-overloads?view=msvc-160

There are two possible fixes for this issue:

  • changing sprintf with sprintf_s in the code (there is only one instance of this);
  • adding legacy_stdio_definitions.lib to the linker: that would load the missing reference to sprintf

Edit: I did a PR with the second solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions