public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: slipbits <slipbits@slipbits.com>
To: cygwin@cygwin.com
Subject: g++ missing stddef.h
Date: Tue, 18 Jan 2022 17:06:22 -0800	[thread overview]
Message-ID: <609f3d88-d9eb-5f6a-d9ba-1d669c36f1fa@slipbits.com> (raw)

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);
}

             reply	other threads:[~2022-01-19  1:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-19  1:06 slipbits [this message]
2022-01-19  5:45 ` Marco Atzeri
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=609f3d88-d9eb-5f6a-d9ba-1d669c36f1fa@slipbits.com \
    --to=slipbits@slipbits.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).