Compile with latest Windows SDK v6.1

32 views
Skip to first unread message

Brian Zhou

unread,
Sep 22, 2008, 6:24:37 PM9/22/08
to acme-sac
Hi all,

I was setting up a new vista machine, and could not find the VC++
toolkit 2003 download any more. So I decided to give the latest "SDK
for Windows Server 2008" a try.

With the good old 2003 toolkit, I remember you have to install
platform SDK separately. You can install Visual Studio 9.0 command
line compiler/linker during the same Windows SDK installation session.
See http://en.wikipedia.org/wiki/Microsoft_Windows_SDK for more info.

Three steps to get it to work:

1) add the following two paths to the PATH environment variable so "os
cl" finds the right compiler
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

2) make the following change
diff -u Nt/profile-bak Nt/profile
--- Nt/profile-bak Sat Jun 16 08:44:12 2007
+++ Nt/profile Mon Sep 22 12:13:50 2008
@@ -18,7 +18,6 @@
-nologo
-W3
-Zi
- -Yd
-MT
'-D_WIN32_WINNT=0x0400'
-I$cwd
@@ -26,8 +25,8 @@
-I$emuroot\sys\include
-I$emuroot\sys\libinterp
-I$emuroot\sys\emu\port
- -I'C:\Program Files\Microsoft Platform SDK\Include'
- -I'C:\Program Files\Microsoft Visual C++ Toolkit
2003\include'
+ -I'C:\Program Files\Microsoft SDKs\Windows
\v6.1\Include'
+ -I'C:\Program Files\Microsoft Visual Studio 9.0\VC
\include'
-Fo$cwd\
)
file=$1
@@ -41,8 +40,8 @@
-map
$LDFLAGS
)
- syslibs=('/libpath:C:\Program Files\Microsoft Platform SDK
\lib'
- '/libpath:C:\Program Files\Microsoft Visual C++ Toolkit
2003\lib'
+ syslibs=('/libpath:C:\Program Files\Microsoft SDKs\Windows
\v6.1\lib'
+ '/libpath:C:\Program Files\Microsoft Visual Studio 9.0\VC\lib'
wsock32.lib
user32.lib
gdi32.lib

3) /sys/emu/Nt/os.c:740 the time() function probably has conflict with
an existing system function. Rename it to time2 seems to work around
this immediate problem. Although I'm not sure whether this change will
cause any other problem. So far the newly built iacme.exe seems to
behave well.

Thought I should share my changes.

The new compiler and SDK also support 64 bit Windows. Is inferno emu
and acme ready for 64bit build? Will there be any benefit going 64bit?

Cheers,

-Brian

Benjamin Huntsman

unread,
Sep 22, 2008, 6:46:05 PM9/22/08
to acme...@googlegroups.com
winmail.dat
Reply all
Reply to author
Forward
0 new messages