C++ in Chromium 101 - Codelab

93 views
Skip to first unread message

sin...@chromium.org

unread,
Oct 16, 2017, 10:21:38 AM10/16/17
to Chromium-dev
I am trying to complete C++ in Chromium 101 - Codelab : Exercise 0.

I am unable to link my binary because I am getting this error: "chromium/src/out/Default/../../third_party/llvm-build/Release+Asserts/bin/ld.lld: error: undefined symbol: std::__1::cout"

On closer inspection I found that https://chromium.googlesource.com/chromium/src/+/ff69d3018c42eb994533de337f81d417a0209913 adds ldflags += [ "-nostdlib++" ]

Questions:
1. Am I missing something or this is the cause of the error?
2. Why was this flag added?
3. Is there a way to "remove" a flag in gn?

Can someone help me with a solution/workaround please?

Thanks.

Nico Weber

unread,
Oct 16, 2017, 10:26:33 AM10/16/17
to sin...@chromium.org, Chromium-dev
The solution is outdated. The executable needs a dep on


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/6ffa959b-7f15-4bff-85d7-089a576128eb%40chromium.org.

Nico Weber

unread,
Oct 16, 2017, 10:27:01 AM10/16/17
to sin...@chromium.org, Chromium-dev
...the suspense!

on

      "//build/config:exe_and_shlib_deps",

sin...@chromium.org

unread,
Oct 16, 2017, 10:39:04 AM10/16/17
to Chromium-dev, sin...@chromium.org
Works! Thanks a ton!
Reply all
Reply to author
Forward
0 new messages