-
Notifications
You must be signed in to change notification settings - Fork 240
Use of 'strtok_r' fails in Windows #92
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
Comments
The problem is that the gcc version bundled with Rust does not define |
I tracked this down awhile ago and unfortunately the problem is:
Unfortunately the only fix here is to just delete the bundled linker that comes with Rust (or uncheck the box during the install). |
@alexcrichton What is the equivalent to "unchecking the box during install" for installs with rustup? |
@masaeedu unfortunately I don't know of a great way to do that. My personal way to work around this is to always install the MSVC host toolchain and then target pc-windows-gnu, that way these components aren't picked up |
@alexcrichton I've also tried the MSVC toolchain, but this package seems to break with that as well, with the following error message:
I'm trying to install https://github.com/killercup/cargo-edit, which depends on curl, using |
@masaeedu that looks more like an informational message than an error maybe? Could you gist the full build log? |
@alexcrichton Sure. Here you go: https://gist.github.com/masaeedu/475aa03570af8f548430f85652071530 |
Oh the actual build there is:
That's building an ancient version of curl-sys though (0.1.*) which has had tons of bug fixes since then. Unfortunately though it doesn't look like you control the version being used :( |
I guess |
I come across this error when trying to compile on Windows. I have MSYS2 installed (I used the rust guide that is linked in the tutorial). It seems that 'strtok_r' is not supported by MSYS2.
Could there be something I missed in my install?
I cannot find much about this error online except that this function is not on Windows.
The text was updated successfully, but these errors were encountered: