delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/12/02:53:27

From: "Randy G" <umgrang0 AT cc DOT umanitoba DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: RSXNTDJ with MSSDK problem
Date: Sun, 12 Sep 1999 00:59:12 -0400
Organization: The University of Manitoba
Lines: 32
Message-ID: <7rffgj$lek$1@canopus.cc.umanitoba.ca>
NNTP-Posting-Host: annex1-29.cc.umanitoba.ca
X-Trace: canopus.cc.umanitoba.ca 937115987 21972 130.179.153.45 (12 Sep 1999 05:59:47 GMT)
X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca
NNTP-Posting-Date: 12 Sep 1999 05:59:47 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This is what worked:
Went to http://surf.to/rsxntdj and followed the instructions (without the
mssdk stuff). Everything worked great and I could compile some
things...thought I'd try to use the mssdk stuff instead...

Now the problem:
I followed the link
http://www.microsoft.com/msdownload/platformsdk/bldenv/01000.asp
Downloaded that ran the installation to c:\mssdk\
Do I have to do anything to that after it has extracted itself?
I believe I made the gccw32 patch correctly.
Rebooted sometime after setting up the autoexec etc...

Now when I compile something simple like:

#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR
lpCmdLine, int nCmdShow){
 MessageBox (NULL, "This is a test", "Whee", MB_OK);
 return 0;
}

I will get the following error:
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?



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019