-
Notifications
You must be signed in to change notification settings - Fork 13
question about wx crt linking. #98
Replies: 6 comments · 2 replies
-
|
maybe you can build with msgnu target? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
i tryed to, but i get this if i add this to my .cargo/config.toml error i get: |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
strange, i don't have to add those two lines in .cargo/config.toml to do static build on both macos and windows... |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Try this? currently I'm on macOS, cannot test the msvc, please help to test For MSVC toolchain (recommended for Windows) Add this to your .cargo/config.toml: [target.x86_64-pc-windows-msvc] For GNU toolchain (MinGW) MinGW typically statically links its runtime by default, but you may still have dependencies on [target.x86_64-pc-windows-gnu] |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi, i tryed both of them. the gnu method still gives me the same error, while the msvc one gives the following D:\dev\Tubex>cargo build --target x86_64-pc-windows-gnu --release error: could not compile D:\dev\Tubex>cargo build --target x86_64-pc-windows-msvc --release error: could not compile |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
going to try this, thanks. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
@AllenDang i found a solution. Will pr it in a bit. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
@AllenDang pr done, it has fixes for the gnu target on windows as well as the msvc static linking support |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
Uh oh!
There was an error while loading. Please reload this page.
-
hi, is it possible to staticly link the crt so the users of my app don't need the vc redist libraries to run my app like vcruntime140.dll?
Beta Was this translation helpful? Give feedback.
All reactions