Skip to content

Library crashes on Windows XP #9

Closed

Description

@tresf
  • @scream3r's jSSC-2.8_x86.dll - Does not crash Windows XP
  • Our version - Crashes Windows XP

After some research I've found out this is due to the bundling (or lack thereof) of some standard libraries.

https://stackoverflow.com/a/6405064/3196753
https://stackoverflow.com/a/18138926/3196753
https://stackoverflow.com/a/12922118/3196753
https://sourceforge.net/p/mingw-w64/discussion/723797/thread/116e5fd5/

So far, this helps dependency walker (it stops complaining about libstdc++, etc) but the app still crashes.

set(CMAKE_CXX_STANDARD_LIBRARIES "-static-libgcc -static-libstdc++ ${CMAKE_CXX_STANDARD_LIBRARIES}")

Activity

  1. self-assigned this
    on Mar 26, 2019
  2. added
    bug
    on Mar 26, 2019
  3. tresf commented on Mar 26, 2019

    @tresf
    Author

    Ok, I think I got it, just needed -fPIC.

    Edit: Nope, now when I add a port it crashes.

    - set(CMAKE_CXX_STANDARD_LIBRARIES "-static-libgcc -static-libstdc++ ${CMAKE_CXX_STANDARD_LIBRARIES}")
    + set(CMAKE_CXX_STANDARD_LIBRARIES "-static-libgcc -static-libstdc++ -fPIC ${CMAKE_CXX_STANDARD_LIBRARIES}")
  4. added a commit that references this issue on Mar 26, 2019
    0ba4018
  5. tresf commented on Mar 26, 2019

    @tresf
    Author

    Closed via 0ba4018. Underlying issue was -O3, but it was being masked by the release flags.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions