The problem is that when you *compile* with libstdc++ when building against
the v8 external API header, it generates object files looking for symbols
with the libstdc++ names.
At that point there's no winning because you have v8 libs which need libc++
and your object files which need libstdc++.
Indeed. By "relocation" I mean that it was built using one stdlib and moved
to the system with another one, but I agree that it's more correct to name
as stdlib issue rather then relocation issue. I tried to link with
libc++.so that generated by v8 build, though, no luck with it for some
It's not a "relocation" issue, I'm pretty sure -- it's a stdlib issue. It
looks like the first symbol was from libc++ (the __1 gives it away) and the
second was most likely from libstdc++. <== just a guess but pretty
consistent with stuff I've seen before.
On Monday, January 1, 2018 at
On Mon, Jan 1, 2018 at 3:00 PM, Bogdan Padalko wrote:
> Hi Zac, thanks for the quick reply!
>
> Here's what I see in library:
>
> $ objdump -T /opt/libv8-6.5/lib/libv8_libplatform.so | grep NewDefault
> a850 gDF .text012e Base
>
If you look at the symbols in your libs is it in there anywhere?
On Saturday, December 30, 2017 at 10:01:28 AM UTC-8, Bogdan Padalko wrote:
>
> Thanks for quick reply! Unfortunately, it's the same. I ended up with
> hello world example after to trying out to use NewDefaultPlatform with
> php-v8
Thanks for quick reply! Unfortunately, it's the same. I ended up with hello
world example after to trying out to use NewDefaultPlatform with php-v8
(https://github.com/pinepain/php-v8/blob/53a562e10c23e5f835b2ccdb20967f9c4aef529e/src/php_v8_a.cc#L34),
which yield me there
On Sat, Dec 30, 2017 at 5:54 PM, Bogdan Padalko wrote:
> Hi!
>
> I'm trying to adapt changes from
> https://github.com/v8/v8/commit/ffee558e14e28fc8b1f9a3c10ea3615e0d686c7b to
> replace CreateDefaultPlatform with NewDefaultPlatform calls, however, for
> some reason I'm
Hi!
I'm trying to adapt changes from
https://github.com/v8/v8/commit/ffee558e14e28fc8b1f9a3c10ea3615e0d686c7b to
replace CreateDefaultPlatform with NewDefaultPlatform calls, however, for
some reason I'm getting
/home/vagrant/php-v8/scripts/test_v8/hello_world.cpp:21: undefined
reference to