From: "DoLL" Newsgroups: comp.os.msdos.djgpp Subject: Re: RSXNTDJ with MSSDK problem Date: Mon, 13 Sep 1999 09:48:35 +0900 Organization: KREONet news service Lines: 38 Message-ID: <7rhhok$oh5$1@usenet.kreonet.re.kr> References: <7rffgj$lek$1 AT canopus DOT cc DOT umanitoba DOT ca> NNTP-Posting-Host: cyberdog.kepri.re.kr X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > In file included from c:/mssdk/include/windef.h:166, > from c:/mssdk/include/windows.h:169, > from test.cpp:1: > c:/mssdk/include/winnt.h:627: #error Must define a target architecture. > > Any suggestions what I can do to get rid of that? The README.TXT in MSSDK directory says : >The value of _WIN32_WINNT is set in Win32.mak, depending on the >platform you choose to target. By default, Win32.mak sets the >TARGETOS to WINNT and the APPVER to 4.0. As a result, by default, >_WIN32_WINNT is now defined as 0x0400. >By default, Win32.mak sets _WIN32_IE to 0x0300 if it is not >already defined. To specifically target Internet Explorer 4.x or >to take advantage of the new CommCtrl features introduced in >Internet Explorer 4.0 (ReBar, VListVw, etc.), set _WIN32_IE to 0x0400. >If you are building an application to run on Windows 95 and you want >compile-time notification of compatibility issues, set TARGETOS=BOTH >in your makefile. When TARGETOS is defined as BOTH, _WIN32_WINNT is >not defined for the precompiler, and the only information parsed at >compile-time is applicable to both Windows 95 and Windows NT. >If you do not include Win32.mak in your makefile, you must >explicitly define _WIN32_WINNT as 0x0500 to get the Windows NT >5.0-specific material from the header files. I tried to define _WIN32_WINNT as 0x0500 explicitly, but failed. Actually, don't know how to define that. Then, I patched mssdk headers according to rsxntdj/patch, and it works well.