On Sun, Oct 19, 2014 at 5:43 AM, Alberto Gonzalez <[email protected]> wrote: > Hello, > > I have been trying to compile the v8 with libc++ but I have not been > successful. I'm currently working with the latest verison of Xcode and my > project is using some c++11 stuff. I have tried using the following: > > export CXX="`which clang++` -std=c++11 -stdlib=libc++" > export LINK="`which clang++` -std=c++11 -stdlib=libc++" > export GYP_DEFINES="clang=1 mac_deployment_target=10.9" > make native > > But when I try to use the library files are generated with my xcode project > I'm getting linking errors such as: > > Undefined symbols for architecture x86_64: > "std::string::end() const", referenced from: > v8::internal::compiler::operator<<(std::ostream&, > v8::internal::compiler::Escaped const&) in libv8_base.a(graph-visualizer.o) > "std::string::begin() const", referenced from: > v8::internal::compiler::operator<<(std::ostream&, > v8::internal::compiler::Escaped const&) in libv8_base.a(graph-visualizer.o) > "std::string::c_str() const", referenced from: > v8::internal::Object::ShortPrint(v8::internal::StringStream*) in > libv8_base.a(objects.o) > v8::internal::FlagList::argv() in libv8_base.a(flags.o) > v8::internal::Logger::SharedLibraryEvent(std::string const&, unsigned > long, unsigned long) in libv8_base.a(log.o) > v8::internal::Logger::SetUp(v8::internal::Isolate*) in > libv8_base.a(log.o) > v8::internal::JavaScriptFrame::Print(v8::internal::StringStream*, > v8::internal::StackFrame::PrintMode, int) const in libv8_base.a(frames.o) > > Am I doing something wrong? or is there a different way to have the v8 > project build on libc++? > > Best Regards > > Alberto Gonzalez Pacheco
It looks like it's not actually linking against libc++. Can you run `make native V=1` and post the output of the link phase? -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
