public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: g++ missing stddef.h
Date: Wed, 19 Jan 2022 06:45:35 +0100	[thread overview]
Message-ID: <b95405f8-5f51-e797-755b-5b0a8e4a4f01@gmail.com> (raw)
In-Reply-To: <609f3d88-d9eb-5f6a-d9ba-1d669c36f1fa@slipbits.com>


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 <stdlib.h>     /* 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


  reply	other threads:[~2022-01-19  5:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-19  1:06 slipbits
2022-01-19  5:45 ` Marco Atzeri [this message]
2022-01-19 20:58   ` Kevin Schnitzius
2022-01-20  2:44     ` Marco Atzeri
2022-01-26 17:01     ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b95405f8-5f51-e797-755b-5b0a8e4a4f01@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).