I forgot to mention the issues related to linking. I have several
other libraries that I am using, along with v8. I receive a warning
related to using a default library conflicting with other libraries.
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of
other libs; use /NODEFAULTLIB:library
When I set the project settings to ignore that library, the warning
goes away but then I receive an unresolved external symbol error from
v8 looking for __HUGE. My guess is that one of my other libraries
conflicts with the default library, but v8 needs that default library
in other to work.
The library is LIBCMT.
This is my library link list:
wsock32.lib
Ws2_32.lib
Winmm.lib
SDLmain.lib
SDL.lib
SDL_image.lib
SDL_mixer.lib
SDL_ttf.lib
opengl32.lib
glu32.lib
DevIL.lib
ILU.lib
ILUT.lib
v8.lib
(along with defaults)
Also, to clarify my previous post, this is the code that the debugger
points at inside of Invoke:
value = CALL_GENERATED_CODE(entry, entry_address, function,
receiver_pointer, argc, args);
On May 12, 8:37 am, MetaCipher <[email protected]> wrote:
> Part of my troubles may be related to not fully understanding the way
> v8 is setup. To give an overview of what I am trying to do, I am
> attempting to load many scripts within their own context that will
> have the same structure. I want to then call various functions / obj-
> methods at various points in my code. Below are links to the code that
> I have created thus far (I am pasting this to insure I am utilizing v8
> properly).
>
> CV8Script.h --http://pastebin.com/ExSuLKpH
> CV8Script.cpp --http://pastebin.com/sWWs9B73
> CV8Core.cpp --http://pastebin.com/qhgfqb95
>
> When I first started to use v8, I was having trouble simply getting it
> to work at all. I resolved this by creating a HandleScope inside my
> main function:
>
> int main(int argc, char* argv[]) {
> v8::HandleScope HandleScope;
>
> CApp theApp;
>
> return (int)theApp.OnExecute(); // Everything happens inside of
> here
>
> }
>
> This feels very hackish to me, but I can understand that scripts need
> a scope to run in. Using my classes above, I create / run scripts like
> this:
>
> CV8Script Script; // Member of CApp
>
> Script.OnLoad("test.js");
>
> Script.Run(); // This works
> Script.Call("OnLoop", i); // This does NOT work
>
> My script is:
> function OnLoop(x) {
> var Buffer = "";
>
> for(var i = 0;i < 100;i++) {
> Buffer += i;
> }
>
> return 1;
>
> }
>
> I receive an Access Violation inside of v8::internal::Invoke when I
> attempt to use my Call method. My debugger points me to the line after
> my Func->Call inside of CV8Script::Call (which makes me think it may
> be related to cleaning up). Any help solving this would be
> appreciated.
>
> My setup:
> Windows 7 x64
> Visual Studio 2008 Standard
>
> Thanks.
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users