From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id F371F385DC34 for ; Tue, 7 Apr 2020 20:55:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F371F385DC34 Received: by mail-wm1-x32d.google.com with SMTP id c195so8806wme.1 for ; Tue, 07 Apr 2020 13:55:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yLYq+DPSfWXGZlCyxePk9pHDJJtbc75sbzXu+qk85w4=; b=TnNXXr6HRFsOPQUcly1OGRQmoPs8+pQAqgaUhGHyDljWxjJWknyCY/fkTO+pk95oFI GSEAhqykQJcpcZxVBt9r268Q+CT1j5RADsdbexXHasnsh6gmNxthCTCRT5YBvcQqKHZZ xyWf7cnkD4bbGlzt3EJrubkH8Lhmnlz3S+JzLKNRjdGaaQrhqBZV7cehyewHUCegHhRd UKsqJD5lzEhaXMDHCNn+7BAHzpjAO6DYRGlSSPPfPHuMjuQ4sEPXDH5I/EQQ0JyY64zH X/1k4hc42cLzOaF2epULb8UiYS4Vn66ejEBvm6cMZAUz+KSgkxVkX6iRFv+ffbJDNZvX a8jQ== X-Gm-Message-State: AGi0PubEX0sikvuEOWnC+wox/zYTMf3zMFG+EntDEFcmZX+6LQZ5QZSi e7KIj2mMG83vfIt1PTCc4RMFgpkTt9M= X-Google-Smtp-Source: APiQypLcPcbmmyaynssjrRMX8+PM/ghqcFWFkSuWjuK/MvO2UM9k8VgO0bVtUG6Xi+cwgY65zPSnow== X-Received: by 2002:a05:600c:21ce:: with SMTP id x14mr1059061wmj.47.1586292917888; Tue, 07 Apr 2020 13:55:17 -0700 (PDT) Received: from ?IPv6:2a01:36d:111:c3da:8414:8cbc:1b59:e26a? (2a01-036d-0111-c3da-8414-8cbc-1b59-e26a.pool6.digikabel.hu. [2a01:36d:111:c3da:8414:8cbc:1b59:e26a]) by smtp.gmail.com with ESMTPSA id o129sm4011490wma.20.2020.04.07.13.55.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Apr 2020 13:55:17 -0700 (PDT) Subject: Re: Missing new.h and broken comdef.h in cygwin32-w32api-headers (and the mingw header packages too) To: cygwin@cygwin.com References: From: =?UTF-8?Q?Csaba_R=c3=a1duly?= Message-ID: Date: Tue, 7 Apr 2020 22:55:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2020 20:55:20 -0000 On 07/04/2020 15:29, Hans de Ruiter via Cygwin wrote: Hi Hans, > I've been trying to compile something that uses comutil.h, which in turn > includes comip.h and comdef.h (amongst others). > > First, I get a missing header error: > /usr/include/w32api/comip.h:21:10: fatal error: new.h: No such file or directory > > So, I copy new.h from the mingw headers (I'm using the cygwin compiler *not* > mingw). Then, I get the following: Why do you think the mingw headers would work with Cygwin's compiler? From an API point of view, Cygwin is a POSIX system. If your software includes comutil.h/compip.h/comdep.h, that's a Windows application. You need a compiler which understands the Windows API and creates native Windows applications. Cygwin's GCC isn't such a compiler. You need either a Mingw compiler, or Cygwin's cross compiler (mingw64-i686-gcc-g++-9.2.0-2 ) Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformat way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)