{"action":"created","issue":{"url":"https://api.github.com/repos/rust-gnome/glib/issues/11","labels_url":"https://api.github.com/repos/rust-gnome/glib/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/rust-gnome/glib/issues/11/comments","events_url":"https://api.github.com/repos/rust-gnome/glib/issues/11/events","html_url":"https://github.com/rust-gnome/glib/issues/11","id":68246055,"number":11,"title":"Running into link errors on Windows","user":{"login":"cybergeek94","id":3198595,"avatar_url":"https://avatars.githubusercontent.com/u/3198595?v=3","gravatar_id":"","url":"https://api.github.com/users/cybergeek94","html_url":"https://github.com/cybergeek94","followers_url":"https://api.github.com/users/cybergeek94/followers","following_url":"https://api.github.com/users/cybergeek94/following{/other_user}","gists_url":"https://api.github.com/users/cybergeek94/gists{/gist_id}","starred_url":"https://api.github.com/users/cybergeek94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybergeek94/subscriptions","organizations_url":"https://api.github.com/users/cybergeek94/orgs","repos_url":"https://api.github.com/users/cybergeek94/repos","events_url":"https://api.github.com/users/cybergeek94/events{/privacy}","received_events_url":"https://api.github.com/users/cybergeek94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-14T02:54:34Z","updated_at":"2015-04-14T19:32:34Z","closed_at":null,"body":"After fixing a bunch of configuration-related compiler errors, I was presented with this:\r\n\r\n```\r\nnote: C:\\users\\austin\\Rust\\gdk\\target\\debug\\deps\\libglib-fcaf29643d8f5d21.rlib(glib-fcaf29643d8f5d21.o): In function `glib::permission::Permission::get_allowed':\r\nC:\\msys64\\home\\Austin\\.cargo\\git\\checkouts\\glib-27833b4b6d67ca46\\master\\src/permission.rs:27: undefined reference to `g_permission_get_allowed'\r\nC:\\users\\austin\\Rust\\gdk\\target\\debug\\deps\\libglib-fcaf29643d8f5d21.rlib(glib-fcaf29643d8f5d21.o): In function `glib::permission::Permission::get_can_acquire':\r\nC:\\msys64\\home\\Austin\\.cargo\\git\\checkouts\\glib-27833b4b6d67ca46\\master\\src/permission.rs:34: undefined reference to `g_permission_get_can_acquire'\r\nC:\\users\\austin\\Rust\\gdk\\target\\debug\\deps\\libglib-fcaf29643d8f5d21.rlib(glib-fcaf29643d8f5d21.o): In function `glib::permission::Permission::get_can_release':\r\nC:\\msys64\\home\\Austin\\.cargo\\git\\checkouts\\glib-27833b4b6d67ca46\\master\\src/permission.rs:41: undefined reference to `g_permission_get_can_release'\r\nC:\\users\\austin\\Rust\\gdk\\target\\debug\\deps\\libglib-fcaf29643d8f5d21.rlib(glib-fcaf29643d8f5d21.o): In function `glib::permission::Permission::impl_update':\r\nC:\\msys64\\home\\Austin\\.cargo\\git\\checkouts\\glib-27833b4b6d67ca46\\master\\src/permission.rs:48: undefined reference to `g_permission_impl_update'\r\nC:\\users\\austin\\Rust\\gdk\\target\\debug\\deps\\libglib-fcaf29643d8f5d21.rlib(glib-fcaf29643d8f5d21.o): In function `glib::value::Value::new':\r\nC:\\msys64\\home\\Austin\\.cargo\\git\\checkouts\\glib-27833b4b6d67ca46\\master\\src/value.rs:36: undefined reference to `create_gvalue'\r\n```\r\n\r\nThe `g_permission` functions are defined by the GIO library, a separate lib and link unit on Windows. And then `create_gvalue()` is an internal function not exported in the GLib headers, at least for me.\r\n\r\nThis is with the latest Windows x64 release of GTK from [here][1].\r\n\r\nPossible solutions:\r\n\r\n* Move the `g_permission` functions to a `gio-sys` crate that links to `-lgio-2`\r\n* Use `g_value_init()` instead of `create_gvalue()`\r\n\r\n[1]: http://www.gtk.org/download/win64.php\r\n"},"comment":{"url":"https://api.github.com/repos/rust-gnome/glib/issues/comments/93031553","html_url":"https://github.com/rust-gnome/glib/issues/11#issuecomment-93031553","issue_url":"https://api.github.com/repos/rust-gnome/glib/issues/11","id":93031553,"user":{"login":"gkoz","id":4260361,"avatar_url":"https://avatars.githubusercontent.com/u/4260361?v=3","gravatar_id":"","url":"https://api.github.com/users/gkoz","html_url":"https://github.com/gkoz","followers_url":"https://api.github.com/users/gkoz/followers","following_url":"https://api.github.com/users/gkoz/following{/other_user}","gists_url":"https://api.github.com/users/gkoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gkoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkoz/subscriptions","organizations_url":"https://api.github.com/users/gkoz/orgs","repos_url":"https://api.github.com/users/gkoz/repos","events_url":"https://api.github.com/users/gkoz/events{/privacy}","received_events_url":"https://api.github.com/users/gkoz/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T19:32:34Z","updated_at":"2015-04-14T19:32:34Z","body":"That would be https://github.com/rust-gnome/glib/pull/13 and https://github.com/rust-gnome/gtk/pull/35"}}