Author: [EMAIL PROTECTED]
Date: Fri Sep 19 02:32:29 2008
New Revision: 345

Modified:
    wiki/BuildingOnWindows.wiki

Log:
Edited wiki page through web user interface adding the section 2Building  
the hello_world sample on Windows"

Modified: wiki/BuildingOnWindows.wiki
==============================================================================
--- wiki/BuildingOnWindows.wiki (original)
+++ wiki/BuildingOnWindows.wiki Fri Sep 19 02:32:29 2008
@@ -39,4 +39,21 @@
  === Running tests on Windows ===
  When running the tests using `tools\test.py` on Windows SCons is used to  
build the tests written in C++. Therefore if using Visual Studio 2008 or  
Visual C++ Express 2008 the additional ´env´ option have to be passed. The  
script `tools\test.py` has an option `-S` to specify options which are  
passed to SCons. For Visual C++ Express 2008 it will look like this..

-||`>tools\test.py -S env="INCLUDE:C:\Program Files\Microsoft  
SDKs\Windows\v6.0A\Include;C:\Program Files\Microsoft Visual Studio  
9.0\VC\include,LIB:C:\Program Files\Microsoft  
SDKs\Windows\v6.0A\Lib;C:\Program Files\Microsoft Visual Studio  
9.0\VC\lib"`||
\ No newline at end of file
+||`>tools\test.py -S env="INCLUDE:C:\Program Files\Microsoft  
SDKs\Windows\v6.0A\Include;C:\Program Files\Microsoft Visual Studio  
9.0\VC\include,LIB:C:\Program Files\Microsoft  
SDKs\Windows\v6.0A\Lib;C:\Program Files\Microsoft Visual Studio  
9.0\VC\lib"`||
+
+=== ===
+=== Building the `hello_world` sample on Windows ===
+To build the `hello_world.cpp` sample from the  
[http://code.google.com/apis/v8/get_started.html Getting Started] section  
of the [http://code.google.com/apis/v8/ documentation] on Windows you can  
use the Microsoft C++ compiler `cl` directly. First open either the _Visual  
Studio 2005 Command Prompt_ or the _Visual Studio 2008 Command Prompt_  
depending on your version if Visual Studio. Change to the directory where  
V8 is checked out (and `v8.lib` is located). Place the file  
`hello_world.cpp` there and run:
+{{{
+cl /Iinclude hello_world.cpp v8.lib
+}}}
+
+This will produce `hello_world.exe` ready to run.
+
+If using a shared library use the following command to compile  
`hello_world.cpp`:
+
+{{{
+cl /Iinclude /DUSING_V8_SHARED hello_world.cpp v8.lib
+}}}
+
+This will produce `hello_world.exe` requiring `v8.dll` in the current  
directory or on the `PATH` to run.
\ No newline at end of file

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to