X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AC70C3857C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=Fp9z0QwJDJSHzcpj3S/htVmPM3+25X0O49HXWkLY/YE=; b=XtTZ9fhA+MFRfScetG9CPjbvKP59qSJDvLDk+nIL1FWYnIRucY9oNOTdh9lmlIS0Mc YIb1d5KbkHJv2+FvkHyrt2YxntqBt3zteUrKaUiCq6VZPjlHEd88/xyVQ8NSnIORDOmz uts1aqlRFZSvlmIrzTk1QGs1JWyvSJskUImAEkQ+B+L51fpCEFF4+riNmODjHVLUcsgu /X9ZhfsD7xRaVw5TdkMg5fky0FUvdOPR6zvwtV/tAYahdTKnB8KT8gqBkCzTytKFqOT/ 3h2C6lNhgJAA2wNQGr5lQ88SlXA8opNUZy4UuguA1DA94Q+UC5wNzEg+UJRtXyFp+N9M RRZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=Fp9z0QwJDJSHzcpj3S/htVmPM3+25X0O49HXWkLY/YE=; b=Ycz4dCAntE0OcKJsCf3cLmr8fa7gyE/Ho2zNSERVuiX/5+YFPSDPMY+ePD4LouJCOB ldtVH+J7m0GoUvVpw3QKH6T66i3UO5kzVSHOew9nIzaWoSVVZsB6LQqcyoU7bUqoB2oN IFioSNKcyTKD9d3rD1AQ+AgwkZy5sXf2i8vh02fTp5D/tscLHvrDTmREeIbx4cTVtAn5 PdtgXrLKlhlHdjGATdXFxUup2GlVFP9m3cqs9EPuUbm8O1eII80uefZuAZRj3j6X6SqP OOZ4o59yklnq/8xYBJSfGaxPMNZTy2OoLKeM2tAamXN0wcRs43YlormluJUV/ndwWQPR GFGA== X-Gm-Message-State: AOAM5308yHM9Two9hsnQ+bYpFYZXgyFn2iHzlPWysRcX9x/dcS24is9X lV4JyWwh1yYmo8BWQ2jQdP6osC4nibg= X-Google-Smtp-Source: ABdhPJwyJhU8WVpv1t/e4BvOyJr3ub7akroLoLe0oHo4XwN0+DnJ4jkfozAC0omFru2qrcZq1Pnq5A== X-Received: by 2002:a05:600c:1548:: with SMTP id f8mr1746326wmg.80.1642571137790; Tue, 18 Jan 2022 21:45:37 -0800 (PST) Message-ID: Date: Wed, 19 Jan 2022 06:45:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: g++ missing stddef.h Content-Language: it To: cygwin AT cygwin DOT com References: <609f3d88-d9eb-5f6a-d9ba-1d669c36f1fa AT slipbits DOT com> From: Marco Atzeri In-Reply-To: <609f3d88-d9eb-5f6a-d9ba-1d669c36f1fa@slipbits.com> X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 20J5kGZW007771 On 19.01.2022 02:06, slipbits wrote: > g++ (GCC) 10.2.0 > Win 7-64 > Netbeans 12.5 > > g++ reported a compiler error in not finding stddef.h referenced in > stdlib.h. I've looked in /usr/include and /usr/include/c++/v1. I found > an stddef.h in /usr/include/c++/v1. Should I copy this to /usr/include? > > The command being executed is 'c:\cygwin64\bin\g++.exe -std=c++11 -g -c > NewCFile.cpp -o /dev/null' > > I've checked my cygwin setup download options and have all of gcc > modules included for C/C++. This is such an odd error that I feel I'm > missing something, and I'm doing something wrong. Can someone help me > fix this? > > thanks > art > > ===== code ===== > > #include      /* exit, EXIT_FAILURE */ > > int main(int argc, char* argv[]) { >    exit (1); > } > This works for me from CLI g++ -Wall prova.cc -o prova So how are you setting your NetBeans ? g++ --version g++ (GCC) 11.2.0 -- 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