Using dynamic libraries produces an identical error.

On Sunday, September 2, 2018 at 7:47:28 PM UTC+8, Dickson Tan wrote:
>
> Hi,
>
> I'm trying to use V8 v7.0 rc (pulled yesterday from git) from Rust, and 
> some very basic calls work. However, when I try creating a new 
> DeserializeInternalFieldsCallback to initialize a context, I get the 
> following linker error:
>
>     
> libv8-8489342a48c5ef6c.rlib(v8-8489342a48c5ef6c.2r60xiaeno2gwquy.rcgu.o) : 
> error LNK2019: unresolved external symbol "public: __cdecl 
> v8::DeserializeInternalFieldsCallback::DeserializeInternalFieldsCallback(void 
> (__cdecl*)(class v8::Local<class v8::Object>,int,class v8::StartupData,void 
> *),void *)" 
> (??0DeserializeInternalFieldsCallback@v8@@QEAA@P6AXV?$Local@VObject@v8@@@1@HVStartupData@1@PEAX@Z2@Z)
>  
> referenced in function 
> _ZN6v8_sys4root2v833DeserializeInternalFieldsCallback3new17h389052d2540e1711E
>     D:\documents\dev\v8-rs\target\debug\deps\v8-92532e3e5a2c200c.exe : 
> fatal error LNK1120: 1 unresolved externals
>
> I'm trying to link against V8 statically, these are my args.gn file.
>
> is_debug = false
> target_cpu = "x64"
> is_component_build = false
> v8_static_library = true
> v8_enable_i18n_support=false
> is_clang=false
>
> Compiled using "ninja -C out.gn/x64.release v8"
>
> I'm linking against the following libraries: "inspector", "v8_base_0", 
> "v8_base_1", "v8_external_snapshot", "v8_init", "v8_initializers", 
> "v8_libbase", "v8_libplatform", "v8_libsampler", "v8_nosnapshot", 
> "v8_snapshot", "dbghelp", "shlwapi", "winmm".
>
> Using the dumpbin tool, I don't see this symbol being referenced in any of 
> these .lib files. Did I miss out a .lib file? I couldn't find anything else 
> besides those I listed though.
>
> Probably unrelated, but I have the following warning as well:
>
>     LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of 
> other libs; use /NODEFAULTLIB:library
>
> I'm on windows 10 version 1803 x64.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to