delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/25/17:19:59

Message-Id: <199805252116.XAA29629@legolas.mdh.se>
Comments: Authenticated sender is <dal97mlm AT mds DOT mdh DOT se>
From: "=?ISO-8859-1?Q?Magnus_Lindstr=F6m?=" <dal97mlm AT mds DOT mdh DOT se>
Organization: Gamla drakar
To: djgpp AT delorie DOT com
Date: Mon, 25 May 1998 23:14:57 +0100
MIME-Version: 1.0
Subject: djgpp, rsxntdj and win32sdk

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
_______________________________________

- Raw text -


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