Re: Problem compiling wine tests with msvc in standalone mode.
2008/7/19 Mikołaj Zalewski <[EMAIL PROTECTED]>: > Where does the ../../../include\rpc.h file come from? If you are mixing > Wine and Windows headers then conflicts are quite possible. I copy only > wine/test.h from the Wine headers. Often, I also need a #include > at the top of the file for it to compile with MS headers, but after this, it > works. That was from the -I../../../include portion of the cl command to pick up wine/test.h. That is, that rpc.h file is the one from Wine. The other headers are being picked up from standard include path settings. I have now got msvcmaker to work, so am using the VS project files generated by that. While they are not perfect, they are usable for the most part (some tests require work to get building), and do not have the above issues. > BTW, as a reminder, you shouldn't use VS for msvcrt tests as you will link > to e.g. msvcr80.dll instead of msvcrt.dll. Thanks for the help/advice, - Reece
Re: Problem compiling wine tests with msvc in standalone mode.
Where does the ../../../include\rpc.h file come from? If you are mixing Wine and Windows headers then conflicts are quite possible. I copy only wine/test.h from the Wine headers. Often, I also need a #include at the top of the file for it to compile with MS headers, but after this, it works. BTW, as a reminder, you shouldn't use VS for msvcrt tests as you will link to e.g. msvcr80.dll instead of msvcrt.dll. Mikołaj Zalewski
Problem compiling wine tests with msvc in standalone mode.
Hi, I am using VS 2008 (9.0) Express in conjunction with the Vista SDK. When compiling the tests, I get: c:\Users\reece\wine\dlls\comctl32\tests>cl -D_X86_ -DSTANDALONE -I../../../inclu de listview.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. listview.c c:\program files\microsoft sdks\windows\v6.0a\include\rpc.h(99) : warning C4005: 'RPCRTAPI' : macro redefinition ../../../include\rpc.h(53) : see previous definition of 'RPCRTAPI' c:\program files\microsoft sdks\windows\v6.0a\include\rpc.h(155) : warning C4005 : 'RpcTryExcept' : macro redefinition ../../../include\rpc.h(81) : see previous definition of 'RpcTryExcept' c:\program files\microsoft sdks\windows\v6.0a\include\rpc.h(162) : warning C4005 : 'RpcExcept' : macro redefinition ../../../include\rpc.h(82) : see previous definition of 'RpcExcept' c:\program files\microsoft sdks\windows\v6.0a\include\rpc.h(171) : warning C4005 : 'RpcTryFinally' : macro redefinition ../../../include\rpc.h(84) : see previous definition of 'RpcTryFinally' c:\program files\microsoft sdks\windows\v6.0a\include\rpc.h(178) : warning C4005 : 'RpcFinally' : macro redefinition ../../../include\rpc.h(85) : see previous definition of 'RpcFinally' c:\program files\microsoft sdks\windows\v6.0a\include\rpc.h(183) : warning C4005 : 'RpcEndFinally' : macro redefinition ../../../include\rpc.h(86) : see previous definition of 'RpcEndFinally' c:\program files\microsoft sdks\windows\v6.0a\include\rpc.h(185) : warning C4005 : 'RpcExceptionCode' : macro redefinition ../../../include\rpc.h(87) : see previous definition of 'RpcExceptionCod e' c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(33) : fatal error C1189: #error : incorrect version. Use the header that matches with the MIDL compiler. Any ideas? Thanks, - Reece