delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/27/14:50:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20100327183447.GB13314@ednor.casa.cgf.cx>
References: <b0ddfae81003270823v2af60a63nf4678c33dc9ba0e7 AT mail DOT gmail DOT com> <20100327162944 DOT GA13314 AT ednor DOT casa DOT cgf DOT cx> <b0ddfae81003270938j6fdfd364w50b1bc9c8e63edb4 AT mail DOT gmail DOT com> <20100327183447 DOT GB13314 AT ednor DOT casa DOT cgf DOT cx>
Date: Sat, 27 Mar 2010 15:50:00 -0400
Message-ID: <b0ddfae81003271250k6e1d5a8qeb2a9639f888fa73@mail.gmail.com>
Subject: Re: how was debate on _GNU_SOURCE resolved? can't find pthread_getattr_np
From: mike marchywka <marchywka AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 3/27/10, Christopher Faylor
 wrote:

> Function declarations which don't exist in any header file cannot show
> up when you set a flag.

They exist in SOME header as they came up on google- I didn't know
what may be available elsewhere, the fact it isn't on my system
doesn't mean it doesn't exist. Although now that you mention it,
you are provably wrong LOL:

marchywka:/home/marchywka/junk# g++ -Wall -O3 -DDM=3DCGF junk.cpp
marchywka:/home/marchywka/junk# ./a.out
 hi to cgf
it ran
marchywka:/home/marchywka/junk# cat junk.cpp
#include <iostream>
void DM()
{
std::cout<<" hi to cgf\r\n";
}

int  main(int cnt, char** args)
{
CGF();
std::cout<<"it ran\r\n";
return 0;

}
marchywka:/home/marchywka/junk#
marchywka:/home/marchywka/junk# g++ -Wall -O3  junk.cpp
junk.cpp: In function =91int main(int, char**)=92:
junk.cpp:9: error: =91CGF=92 was not declared in this scope
marchywka:/home/marchywka/junk#





>
>>>>Grepping through the pthread header however I don't see any indication
>>>>the things the compiler is complaining about exist. It seems however
>>>>the _GNU_SOURCE flag comes up in many headers in the include dir.
>>>
>>> You're conflating things here.  This has nothing to do with _GNU_SOURCE.
>>> Defining _GNU_SOURCE isn't going to cause nonexistent functions to show
>>> up.  The fact that you can't find the functions in a header file should
>>> be a clue.  The functions simply don't exist on Cygwin.
>>
>>I could have missed something and maybe I just needed to install
>>something new or dropped a package- they didn't have to be in a pthread
>>header...  .  So I guess then the question is what replaces this or if
>>you have a link to the issues here- why aren't these part of cygwin?
>
> Why do you think?

Well I guess it is non portable but that isn't always informative.
You coldn't figure out how to get  windoze system to
make it work? Now you are asking me to know what these things
are supposed to do and what windoze will allow.


>
> cgf
>
> --

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019