Message-Id: <199805252116.XAA29629@legolas.mdh.se> Comments: Authenticated sender is From: "=?ISO-8859-1?Q?Magnus_Lindstr=F6m?=" Organization: Gamla drakar To: djgpp AT delorie DOT com Date: Mon, 25 May 1998 23:14:57 +0100 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: djgpp, rsxntdj and win32sdk Precedence: bulk First of all I appologize if this is of subject, but i had no idea where else to post it.. I am trying to set up paths for the microsoft sdk but things aren't going very well.. With the sdk comes a bat file called setenv.bat This file adds the winsdk's include dir, lib dir and path to the environment variables INCLUDE, LIB and PATH. In order the sdk to work properly it's path's must precede all other paths.. but djgpp doesn't use these environment variables in it's djgpp.env file.. First it didn't find the sdk's headers at all.. I edited djgpp.env with the result that gcc did find the sdk's headers but with these errors.. By the way.. I got the file gamecons.c from a direct draw tutorial on the net and it seems afaik correct. In file included from C:/WIN#"SDK/INCLUDE/windef.h:166, from C:/WIN32SDK/INCLUDE/windows.h:148, from gamecons.c:7: C:/WIN32SDK/INCLUDE/winnt.h:540: #error Must define a target architecture. In file included from gamecons.c:11: C:/WIN32SDK/INCLUDE/ddraw.h:30: warning: 'CO_E_NOTINITIALIZED' redefined C:/WIN32SDK/INCLUDE/winerror.h:9332: warning: this is the location of the previous definition I compile with this command... gcc -Zwin32 gamecons.c -o gamecons.exe I've tried with... gcc -Zwin32 gamecons.c -o gamecons.exe -lwinmm but with the same result.. Thanks for any response.. Magnus _______________________________________ E-mail-> dal97mlm AT mds DOT mdh DOT se WWW-> mds.mdh.se/~dal97mlm/ ICQ UIN -> 3959951 _______________________________________