{"action":"closed","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6494","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6494/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6494/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6494/events","html_url":"https://github.com/electron/electron/issues/6494","id":165665026,"number":6494,"title":"Linker error when using Chromium classes","user":{"login":"gerhardberger","id":1059699,"avatar_url":"https://avatars.githubusercontent.com/u/1059699?v=3","gravatar_id":"","url":"https://api.github.com/users/gerhardberger","html_url":"https://github.com/gerhardberger","followers_url":"https://api.github.com/users/gerhardberger/followers","following_url":"https://api.github.com/users/gerhardberger/following{/other_user}","gists_url":"https://api.github.com/users/gerhardberger/gists{/gist_id}","starred_url":"https://api.github.com/users/gerhardberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerhardberger/subscriptions","organizations_url":"https://api.github.com/users/gerhardberger/orgs","repos_url":"https://api.github.com/users/gerhardberger/repos","events_url":"https://api.github.com/users/gerhardberger/events{/privacy}","received_events_url":"https://api.github.com/users/gerhardberger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-14T21:38:55Z","updated_at":"2016-07-15T00:39:47Z","closed_at":"2016-07-15T00:39:46Z","body":"* Electron version: 1.2.6\r\n* Operating system: macOS 10.11\r\n\r\nUsing certain Chromium classes causes linker error, when building. This happens with classes for example, `BrowserCompositorMac` (`content/browser/renderer_host/browser_compositor_view_mac.h`) and `SoftwareOutputDeviceMac` (`content/browser/compositor/software_output_device_mac.h`). Note, that both of these are macOS-specific classes with a `.h` and `.mm` file.\r\nThe error I get:\r\n```\r\n$ ./script/build.py -c D\r\nninja: Entering directory `out/D'\r\n[7/16] SOLINK \"Electron Framework.framewor...Versions/A/Electron Framework\", POSTBUILDS\r\nFAILED: /Volumes/Elements/dev/electron/vendor/llvm-build/Release+Asserts/bin/clang++ -shared -ObjC -stdlib=libc++ -mmacosx-version-min=10.8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -L. -install_name @rpath/Electron\\ Framework.framework/Electron\\ Framework -Wl,-rpath,@loader_path/Libraries -F/Volumes/Elements/dev/electron/external_binaries -stdlib=libc++ -o \"Electron Framework.framework/Versions/A/Electron Framework\" @Electron_Framework.framework.rsp\r\nUndefined symbols for architecture x86_64:\r\n  \"content::BrowserCompositorMac::Create()\", referenced from:\r\n      atom::MyWindow::CreatePlatformWidget() in libelectron_lib.a(electron_lib.xyz_window_mac.o)\r\n  \"content::BrowserCompositorMac::Unsuspend()\", referenced from:\r\n      atom::MyWindow::CreatePlatformWidget() in libelectron_lib.a(electron_lib.xyz_window_mac.o)\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nninja: build stopped: subcommand failed.\r\n```"}}
{"actor":{"display_login":"zcbenz"}}