Created
April 21, 2013 01:39
-
-
Save dymk/5428125 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| lib\wand_extern.rs:5:12: 5:26 error: unresolved name | |
| lib\wand_extern.rs:5 use types::{MagickWandPtr, ImagePtr}; | |
| ^~~~~~~~~~~~~~ | |
| lib\wand_extern.rs:5:12: 5:26 error: failed to resolve import: types::MagickWandPtr | |
| lib\wand_extern.rs:5 use types::{MagickWandPtr, ImagePtr}; | |
| ^~~~~~~~~~~~~~ | |
| lib\wand_extern.rs:5:27: 5:36 error: unresolved name | |
| lib\wand_extern.rs:5 use types::{MagickWandPtr, ImagePtr}; | |
| ^~~~~~~~~ | |
| lib\wand_extern.rs:5:27: 5:36 error: failed to resolve import: types::ImagePtr | |
| lib\wand_extern.rs:5 use types::{MagickWandPtr, ImagePtr}; |
This file contains hidden or 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
| /* test/test_wand_extern.rs */ | |
| use wand_extern::wand; | |
| #[path = "../lib/wand_extern.rs"] | |
| mod wand_extern; | |
| #[test] | |
| fn test_it_compiles() { | |
| unsafe { wand::MagickWandGenesis(); } | |
| assert!(true); | |
| } |
This file contains hidden or 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
| pub type MagickWandPtr = *libc::c_void; | |
| pub type ImagePtr = *libc::c_void; |
This file contains hidden or 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
| use types::{MagickWandPtr, ImagePtr}; | |
| mod types; | |
| #[link_name = "CORE_DB_wand_"] | |
| #[link_args = "-LG:\\Programs\\ImageMagick-6.8.4\\VisualMagick\\lib"] | |
| pub extern mod wand { | |
| fn MagickWandGenesis(); | |
| fn MagickWandTerminus(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment