X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE76E3887010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1586292922; bh=RrKpMol6hta4agg/70df7z/6hPngQ9kZGpkjxgxCHtM=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=iAurCEkrUpByWTT6Y2yZF/UAvVHu2LRKLmgEBSJPVAnAWBKQ3UGEtW8qM7s02K74+ YRASlYcv6UOj7tB2u+tGBtBTSxG8rgam7z/gDdWHYUnkweRRbC8s7pCGNBjYJWMDBL t0okZx285wopXYMy5A2x0LmClxQzfJQZXxdbOYK0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F371F385DC34 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) Subject: Re: Missing new.h and broken comdef.h in cygwin32-w32api-headers (and the mingw header packages too) To: cygwin AT cygwin DOT com References: 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-Language: en-GB 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 AT cygwin DOT 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: , From: =?utf-8?q?Csaba_R=C3=A1duly_via_Cygwin?= Reply-To: =?UTF-8?Q?Csaba_R=c3=a1duly?= Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" 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) -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple