Hi there. V8 still only compiles as a 32-bit library, so what you did was the correct way to build the application. If you build using scons, e.g. "scons sample=shell", the -m32 flag is added automatically, but when you use the library on a 64-bit default compiler, you need the flag as well. We should update the "get started" page (and http://code.google.com/apis/v8/build.html) to account for 64-bit linuxen. Thank you for the reminder :) Regards /Lasse
On Fri, May 8, 2009 at 8:56 PM, Luis Furquim <[email protected]> wrote: > > Hello all! > > I just started to play around with v8 and compiled the Hello_world.cpp > example > at the http://code.google.com/apis/v8/get_started.html page. > > The point is: I am not asking for support/help (at least not yet!), I > am just sharing > an initial problem and solution which I thought it could be put at the > referenced page > in order to help others with a system like mine. I don't know if this > list is the exact > place where I have to post it, so, please if it isn't, please be nice > and don't flame me > too much! ;) . I also searched this list to see if anyone had said it > before and just found > people asking to port v8 to 64bit. > > So, I am using an Ubuntu Intrepid Ibex on a 64bit machine. > > I followed the instructions at that page and have no success on > compiling. > Then after some tries I made it. I had to: > > 1) install the g++-4.3-multilib package (I had only g++-4.3 > installed); > 2) add the -m32 option to the command line: > g++ -m32 -Iinclude hello_world.cpp -o hello_world libv8.a -lpthread > > Thank you for your attention > Luis Otavio de Colla Furquim > > > -- Lasse R.H. Nielsen [email protected] 'Faith without judgement merely degrades the spirit divine' --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
