Created
September 2, 2015 04:09
-
-
Save retep998/041f7ce52d455904e9b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate lib; | |
fn main() { | |
lib::test(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\msys64\home\Peter\test> rustc -g lib.rs | |
C:\msys64\home\Peter\test> rustc -g bin.rs --extern lib=lib.dll | |
error: cannot satisfy dependencies so `std` only shows up once | |
help: having upstream crates all available in one format will likely make this go away | |
error: cannot satisfy dependencies so `core` only shows up once | |
help: having upstream crates all available in one format will likely make this go away | |
error: cannot satisfy dependencies so `collections` only shows up once | |
help: having upstream crates all available in one format will likely make this go away | |
error: cannot satisfy dependencies so `rustc_unicode` only shows up once | |
help: having upstream crates all available in one format will likely make this go away | |
error: cannot satisfy dependencies so `alloc` only shows up once | |
help: having upstream crates all available in one format will likely make this go away | |
error: cannot satisfy dependencies so `libc` only shows up once | |
help: having upstream crates all available in one format will likely make this go away | |
error: cannot satisfy dependencies so `rand` only shows up once | |
help: having upstream crates all available in one format will likely make this go away | |
error: aborting due to 7 previous errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![crate_type = "dylib"] | |
pub fn test() { | |
println!("Hello world!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment