I have now managed to compile the tests with MSVC and MSVC headers. (Using Visual studio.NET)
(Using instructions from http://winehq.com/site/docs/wine-devel/testing-windows )
propset.c, process.c, thread.c, wksta.c, env.c, error.c, generated.c, large_int.c, path.c, rtl.c, rtlbitmap.c, rtlstr.c, string.c and dpa.c did not compile however.
This means with VC++ and MSVC headers 12 EXEs compile, with VC++ and MinGW headers 16 EXEs compile. Crosscompiling tests from Linux is still somewhat broken as per current CVS, but still 18 EXEs compile!
So crosscompiling gets us the most tests compiled.
Errors with MSVC headers: h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(42): error C2065: 'HDPA' : undeclared identifier h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(42): error C2146: syntax error : missing ';' before identifier 'dpa_ret' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(42): error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(42): error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(42): error C2143: syntax error : missing ';' before 'identifier' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(42): error C2065: 'dpa_ret' : undeclared identifier h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(43): error C2275: 'INT' : illegal use of this type as an expression h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(43): error C2146: syntax error : missing ';' before identifier 'int_ret' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(43): error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(43): error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(43): error C2143: syntax error : missing ';' before 'identifier' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(43): error C2065: 'int_ret' : undeclared identifier h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(44): error C2275: 'CHAR' : illegal use of this type as an expression H:\program files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinNT.h(239) : see declaration of 'CHAR' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(44): error C2146: syntax error : missing ';' before identifier 'test_str0' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(44): error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(44): error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(44): error C2143: syntax error : missing ';' before 'identifier' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(44): error C2065: 'test_str0' : undeclared identifier h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(44): error C2059: syntax error : ']' h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(46): warning C4013: 'DPA_Create' undefined; assuming extern returning int h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(48): warning C4013: 'DPA_Search' undefined; assuming extern returning int h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(48): error C2065: 'DPAS_SORTED' : undeclared identifier h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(50): error C2065: 'DPAS_INSERTBEFORE' : undeclared identifier h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(52): error C2065: 'DPAS_INSERTAFTER' : undeclared identifier oleaut32_test error LNK2019: unresolved external symbol _IFont_QueryInterface referenced in function _func_olefont oleaut32_test fatal error LNK1120: 1 unresolved externals h:\work_dir\Wine\wine\dlls\ntdll\tests\string.c(27): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\ntdll\tests\rtlstr.c(28): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\ntdll\tests\rtlbitmap.c(26): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\ntdll\tests\rtl.c(27): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\ntdll\tests\path.c(24): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\ntdll\tests\large_int.c(27): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\ntdll\tests\generated.c(14): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\ntdll\tests\error.c(24): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\ntdll\tests\env.c(24): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\netapi32\tests\wksta.c(28): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\kernel\tests\thread.c(27): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\kernel\tests\process.c(27): fatal error C1083: Cannot open include file: 'ntstatus.h': No such file or directory h:\work_dir\Wine\wine\dlls\dsound\tests\propset.c(32): fatal error C1083: Cannot open include file: 'dsconf.h': No such file or directory
On September 11, 2003 12:24 pm, Jakob Eriksson wrote:
This means with VC++ and MSVC headers 12 EXEs compile, with VC++ and MinGW headers 16 EXEs compile. Crosscompiling tests from Linux is still somewhat broken as per current CVS, but still 18 EXEs compile!
So crosscompiling gets us the most tests compiled.
Errors with MSVC headers:
This may help a little.
ChangeLog Use winnt.h instead of ntstatus.h where we can.
Index: dlls/kernel/tests/process.c =================================================================== RCS file: /var/cvs/wine/dlls/kernel/tests/process.c,v retrieving revision 1.11 diff -u -r1.11 process.c --- dlls/kernel/tests/process.c 5 Sep 2003 23:08:36 -0000 1.11 +++ dlls/kernel/tests/process.c 15 Sep 2003 03:32:36 -0000 @@ -24,12 +24,12 @@ #include <stdlib.h>
#include "wine/test.h" -#include "ntstatus.h" #include "windef.h" #include "winbase.h" #include "winuser.h" #include "wincon.h" #include "winnls.h" +#include "winnt.h"
static char base[MAX_PATH]; static char selfname[MAX_PATH]; Index: dlls/kernel/tests/thread.c =================================================================== RCS file: /var/cvs/wine/dlls/kernel/tests/thread.c,v retrieving revision 1.11 diff -u -r1.11 thread.c --- dlls/kernel/tests/thread.c 5 Sep 2003 23:08:36 -0000 1.11 +++ dlls/kernel/tests/thread.c 15 Sep 2003 03:32:14 -0000 @@ -24,7 +24,6 @@ #include <stdarg.h>
#include "wine/test.h" -#include <ntstatus.h> #include <windef.h> #include <winbase.h> #include <winnt.h> Index: dlls/netapi32/tests/wksta.c =================================================================== RCS file: /var/cvs/wine/dlls/netapi32/tests/wksta.c,v retrieving revision 1.8 diff -u -r1.8 wksta.c --- dlls/netapi32/tests/wksta.c 5 Sep 2003 23:08:35 -0000 1.8 +++ dlls/netapi32/tests/wksta.c 15 Sep 2003 03:33:06 -0000 @@ -25,7 +25,7 @@ #include "winbase.h" #include "wingdi.h" #include "winnls.h" -#include "ntstatus.h" +#include "winnt.h" #include "winresrc.h" /* Ensure we use Unicode defns with native headers */ #include "nb30.h" #include "lmcons.h"
Jakob Eriksson jakob@vmlinux.org writes:
Errors with MSVC headers: h:\work_dir\Wine\wine\dlls\comctl32\tests\dpa.c(42): error C2065: 'HDPA' : undeclared identifier
You should upgrade to the latest SDK headers, it will work much better.