{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/18974","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/18974/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/18974/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/18974/events","html_url":"https://github.com/rust-lang/rust/issues/18974","id":48884710,"number":18974,"title":"Windows File Not Recognized?","user":{"login":"dubcanada","id":120325,"avatar_url":"https://avatars.githubusercontent.com/u/120325?v=3","gravatar_id":"","url":"https://api.github.com/users/dubcanada","html_url":"https://github.com/dubcanada","followers_url":"https://api.github.com/users/dubcanada/followers","following_url":"https://api.github.com/users/dubcanada/following{/other_user}","gists_url":"https://api.github.com/users/dubcanada/gists{/gist_id}","starred_url":"https://api.github.com/users/dubcanada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dubcanada/subscriptions","organizations_url":"https://api.github.com/users/dubcanada/orgs","repos_url":"https://api.github.com/users/dubcanada/repos","events_url":"https://api.github.com/users/dubcanada/events{/privacy}","received_events_url":"https://api.github.com/users/dubcanada/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-windows","name":"A-windows","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-15T08:03:20Z","updated_at":"2015-01-27T19:31:55Z","closed_at":"2015-01-27T19:31:55Z","body":"Hello,\r\n\r\nI am trying to build rgtk and I keep running into a problem with Rust. I keep getting an error\r\n\r\n    error: linking with `gcc` failed: exit code: 1\r\n    note: gcc '-Wl,--enable-long-section-names' '-fno-use-linker-plugin' '-Wl,--nxcompat' '-static-libgcc' '-m64' '-L' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib' '-o' 'D:\\Tools\\rgtk\\examples\\gtktest\\target\\gtktest.exe' 'D:\\Tools\\rgtk\\examples\\gtktest\\target\\gtktest.o' '-fno-lto' '-Wl,--gc-sections' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libnative-4e7c5e5c.rlib' 'D:\\Tools\\rgtk\\examples\\gtktest\\target\\deps\\librgtk-92ce7c6df576b5bf.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-4e7c5e5c.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libsync-4e7c5e5c.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustrt-4e7c5e5c.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\librand-4e7c5e5c.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcollections-4e7c5e5c.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunicode-4e7c5e5c.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-4e7c5e5c.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-4e7c5e5c.rlib' 'D:\\Tools\\Rust\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-4e7c5e5c.rlib' '-L' 'D:\\Tools\\rgtk\\examples\\gtktest\\target' '-L' 'D:\\Tools\\rgtk\\examples\\gtktest\\target\\deps' '-L' 'D:\\Tools\\rgtk\\examples\\gtktest\\target\\native\\rgtk-92ce7c6df576b5bf' '-L' 'D:\\Tools\\rgtk\\examples\\gtktest\\.rust' '-L' 'D:\\Tools\\rgtk\\examples\\gtktest' '-Wl,--whole-archive' '-Wl,-Bstatic' '-Wl,--no-whole-archive' '-Wl,-Bdynamic' '-lglib-2.0' '-lgtk-3' '-lgio-2.0' '-lgobject-2.0' '-lgdk-3' '-lcairo' '-lws2_32' '-lcompiler-rt'\r\n    note: D:\\Tools\\rgtk\\examples\\gtktest\\target\\gtktest.o: file not recognized: File format not recognized\r\n    collect2.exe: error: ld returned 1 exit status\r\n\r\nI can't seem to figure out what is going on. Why am I getting a linker error about `file not recognized: File format not recognized`. I don't believe this has anything to do with rgtk as it happens if I try and compile a normal Rust app as well.\r\n\r\nAny ideas what is up?"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/71711811","html_url":"https://github.com/rust-lang/rust/issues/18974#issuecomment-71711811","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/18974","id":71711811,"user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T19:31:55Z","updated_at":"2015-01-27T19:31:55Z","body":"@dubcanada , we haven't heard from you in a while, so I'm giving this a close. If you are still having this issue, please give a shout out to @alexcrichton and @vadimcn with their quesitons, thanks!"}}