delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/13/10:48:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: abomination.cygnus.com: mdejong owned process doing -bs
Date: Thu, 13 Apr 2000 08:46:33 -0700 (PDT)
From: Mo DeJong <mdejong AT cygnus DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Mingwin does not seem to know where its headers live.
Message-ID: <Pine.LNX.4.10.10004130842580.27294-100000@abomination.cygnus.com>
MIME-Version: 1.0

I am trying to compile this code.

BASH.EXE-2.03$ cat WIN32.C
#include <string.h>
#include <direct.h>

int main(int argc, char ** argv) {
    strcpy(NULL,NULL);
    mkdir(NULL);
    return 0;
}


When I build with mingwin, it bails out
saying it can not find direct.h.

BASH.EXE-2.03$ gcc -mno-cygwin -c WIN32.C
WIN32.C:2: direct.h: No such file or directory

But, if I provide the fully qualified path name
of mingwin's header directory it compiles.

BASH.EXE-2.03$ gcc -mno-cygwin -c WIN32.C
-I/usr/i686-pc-cygwin/include/mingw


Why does mingwin not know where its own
headers live? Am I doing something wrong?

Mo Dejong
Red Hat Inc.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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