Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <004a01bf6230$74006b40$983c1818@rochester.rr.com> From: "Terry Lincoln" To: , "Joe Kraska" References: <200001182026 DOT MAA09121 AT ESCHER DOT SD DOT BBN DOT COM> Subject: Re: Native Win32 compiling... strange error Date: Tue, 18 Jan 2000 22:51:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joe, Joe Kraska wrote: > Hi. Well, I read the fact and searched the archives the best I > knew how. Here's what I'm trying to do: > > Using the b20 standard release, I am attempting to compile a > native windows application with gcc. The include files I am > using are > the ones in Microsoft's own SDK, and I am expecting to link > with the libs there as well. I am, in fact, attempting to compile > the "Brouhahah" example from (chapter 13?) _Inside Direct X_. > Here is, literally, what happens: > > jkraska% gnumake --unix > mkdir -p ./WIN98 > gcc -c -mno-cygwin -mwindows -g -I/g/sdk/Include -DNT brouhaha.C > -o WIN98/brouhaha.o ~~~~ ! It could possibly be this little argument right here^ that says you're compiling for NT. > In file included from \g\sdk\Include\windef.h:166, > from \g\sdk\Include\windows.h:171, > from brouhaha.h:6, > from brouhaha.C:1: > \g\sdk\Include\winnt.h:705: #error Must define a target > architecture. make: *** [WIN98/brouhaha.o] Error 1 > > Some clarification: "brouhaha.h" is the first file included by > "brouhaha.C". "windows.h" is the first file included by > "brouhaha.h". I'm unclear why what happens next happens. > Obviously "winnt.h" is being included and a preprocessor > #if/else combination is not happy. I am compiling under Windows > 98, so I'm unclear why "winnt.h" is being included, but I am > assuming right now that it's normal and somehow related to > portability. But the failure to find a define is not normal, so > am I doing something wrong??? > > Does anyone know? > > It appears that winnt.h expects a #define to have been > #defined. It's a bit irregular that I should be expected to do > this myself, however, so I'm worried that I'm not invoking > the compiler correctly. > > > Joe Kraska > San Diego > CA > > > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > > Warm Regards, W. Terry Lincoln Senior Solution Developer [Linux Registered User #99583] Ciber corporation -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.2 for non-commercial use Comment: This is the PGP comment I have made. iQA/AwUBOIU0tmdPbBTG5+8FEQL3uACePke8RsrHb7Ry8UgOn9JTEMFtCMgAoMIy 6WAJ8rCmujBKPPJzfGuJvDt+ =64bY -----END PGP SIGNATURE----- -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com