public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Kevin Schnitzius <kometes@yahoo.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: g++ missing stddef.h
Date: Wed, 19 Jan 2022 20:58:06 +0000 (UTC)	[thread overview]
Message-ID: <943284358.40822.1642625886017@mail.yahoo.com> (raw)
In-Reply-To: <b95405f8-5f51-e797-755b-5b0a8e4a4f01@gmail.com>

 On Wednesday, January 19, 2022, 12:46:26 AM EST, Marco Atzeri <marco.atzeri@gmail.com> wrote:>> 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
Works fine from bash.  It reproes from cmd.exe

-- 
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
  

  reply	other threads:[~2022-01-19 20:58 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
2022-01-19 20:58   ` Kevin Schnitzius [this message]
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=943284358.40822.1642625886017@mail.yahoo.com \
    --to=kometes@yahoo.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).