Skip to content

Fix unresolved external symbol for MSVS 2017 (#3762) #3763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Latios96
Copy link
Contributor

@Latios96 Latios96 commented Feb 2, 2023

If char16_t is used as template argument, this leads to an unresolved symbol for MSVS 2017. Use int16_t instead of char16_t in this case.

Fixes #3762

Checklist:

  • I have read the contribution guidelines.
  • If this is more extensive than a small change to existing code, I
    have previously submitted a Contributor License Agreement
    (individual, and if there is any way my
    employers might think my programming belongs to them, then also
    corporate).
    This is just a small change
  • I have updated the documentation, if applicable. Not applicable.
  • I have ensured that the change is tested somewhere in the testsuite
    (adding new test cases if necessary).
    Not applicable.
  • My code follows the prevailing code style of this project.

…on#3762)

If char16_t is used as template argument, this leads to an unresolved symbol for MSVS 2017.
Use int16_t instead of char16_t in this case
@lgritz
Copy link
Collaborator

lgritz commented Feb 2, 2023

LGTM, thanks for the fix!

Do you need a tagged release right away?

@lgritz lgritz merged commit 3b34231 into AcademySoftwareFoundation:master Feb 2, 2023
@Latios96
Copy link
Contributor Author

Latios96 commented Feb 3, 2023

@lgritz If that is possible, that would be great! But if it's too much effort, I can also just include the patch in the Conan package

lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Feb 4, 2023
…on#3762) (AcademySoftwareFoundation#3763)

If char16_t is used as template argument, this leads to an unresolved symbol for MSVS 2017.
Use int16_t instead of char16_t in this case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] unresolved external symbol std::codecvt for MSVS 2017 with OIIO 2.4.7.1
2 participants