You're right. I've used the wrong method. Instead of setting Library 
directories i had to:

go to project properties -> Configuration properties -> Linker.
go to ->General and set the "Additional Library directories" to point to my 
lib file directory.
then go to Linker -> Input and type in the lib file names in the 
"Additional Dependencies" field:
icui18n.lib
icuuc.lib
v8_base.lib
v8_nosnapshot.lib
v8_snapshot.lib

And it worked... sort of.

The new Output had less errors:

> 1>------ Rebuild All started: Project: HelloWorld, Configuration: Release 
>> Win32 ------
>
> 1>  main.cpp
>
> 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other 
>> libs; use /NODEFAULTLIB:library
>
> 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other 
>> libs; use /NODEFAULTLIB:library
>
> 1>v8_base.lib(platform-win32.obj) : error LNK2001: unresolved external 
>> symbol __imp__timeGetTime@0
>
> 1>v8_base.lib(time.obj) : error LNK2001: unresolved external symbol 
>> __imp__timeGetTime@0
>
> 1>C:\Game_Development\V8Native\PozdravSvijete\HelloWorld\Release\HelloWorld.exe
>  
>> : fatal error LNK1120: 1 unresolved externals
>
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
>
>
I went on and searched for additional dependencies i might have missed and 
found this stackoverflow 
page: http://stackoverflow.com/questions/13117358/hello-world-js-v8-vs2010

But none of the suggestions seemed to help even though they go very well 
with the assumption that I had to add
ws2_32.lib
winmm.lib

and maybe even advapi32.lib

Since they can all be found in the all.sln. But I end up with another set 
of errors if I add them:

> 1>------ Rebuild All started: Project: HelloWorld, Configuration: Release 
>> Win32 ------
>
> 1>  main.cpp
>
> 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other 
>> libs; use /NODEFAULTLIB:library
>
> 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other 
>> libs; use /NODEFAULTLIB:library
>
> 1>  Generating code
>
> 1>  Finished generating code
>
> 1>LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" 
>> (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined 
>> in MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(crt0dat.obj) : error LNK2005: __cexit already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(winapisupp.obj) : error LNK2005: 
>> ___crtSetUnhandledExceptionFilter already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(winapisupp.obj) : error LNK2005: ___crtTerminateProcess 
>> already defined in MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(winapisupp.obj) : error LNK2005: ___crtUnhandledException 
>> already defined in MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined 
>> in MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(crtheap.obj) : error LNK2005: __calloc_crt already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(rand_s.obj) : error LNK2005: _rand_s already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(winsig.obj) : error LNK2005: _raise already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in 
>> MSVCRT.lib(cinitexe.obj)
>
> 1>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in 
>> MSVCRT.lib(cinitexe.obj)
>
> 1>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in 
>> MSVCRT.lib(cinitexe.obj)
>
> 1>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in 
>> MSVCRT.lib(cinitexe.obj)
>
> 1>LIBCMT.lib(errmode.obj) : error LNK2005: ___set_app_type already defined 
>> in MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(fflush.obj) : error LNK2005: _fflush already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(_file.obj) : error LNK2005: ___iob_func already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(wsetloca.obj) : error LNK2005: __configthreadlocale already 
>> defined in MSVCRT.lib(MSVCR110.dll)
>
> 1>LIBCMT.lib(strtol.obj) : error LNK2005: _strtol already defined in 
>> MSVCRT.lib(MSVCR110.dll)
>
> 1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall 
>> type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) 
>> already defined in LIBCMT.lib(typinfo.obj)
>
> 1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & 
>> __thiscall type_info::operator=(class type_info const &)" 
>> (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
>
> 1>C:\Game_Development\V8Native\PozdravSvijete\HelloWorld\Release\HelloWorld.exe
>  
>> : fatal error LNK1169: one or more multiply defined symbols found
>
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
>
>
Suffice to say I'm not sure what it all means. I'll definatelly keep 
looking as I'm sure im not far from the solution but I'd gladly accept 
suggestions. 


Dana utorak, 27. svibnja 2014. 07:13:06 UTC+2, korisnik Flying Jester 
napisao je:
>
> It looks like you haven't linked V8 in.
>
> Look at your build tools' documentation for how to link with a library/
>

-- 
-- 
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.

Reply via email to