delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/28/01:15:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Originating-IP: [203.152.128.2]
X-Originating-Email: [vm6580 AT hotmail DOT com]
From: "Vikram Mehta" <vm6580 AT hotmail DOT com>
To: garbage_collector AT telia DOT com
Cc: cygwin AT cygwin DOT com
Subject: RE: _stderr, _stdout, _errno etc.
Date: Sat, 28 Jun 2003 10:44:50 +0530
Mime-Version: 1.0
Message-ID: <Law14-F109VP9AtFofS0000b249@hotmail.com>
X-OriginalArrivalTime: 28 Jun 2003 05:14:51.0123 (UTC) FILETIME=[33AF5C30:01C33D34]

Hi ,

These are plain C question, that is why I asked them here.

These are not due to not  including header files.
the gcc that comes with CYGWIN cabot find the proper libraries.

That is y I asked this question.

I thought somebody here might know what library will have thse functions in 
CYGWIN.

Can u help me here

Vikram


>From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector AT telia DOT com>
>To: "Cygwin AT Cygwin DOT Com" <cygwin AT cygwin DOT com>
>Subject: RE: _stderr, _stdout, _errno etc.
>Date: Fri, 27 Jun 2003 22:53:58 +0200
>
>
>  As it seems right now - This really isn't cygwin-stuff... this is plain
>gcc - and even beyond that, i.e. plain C programming. In other words; This
>list isn't the right place to ask about it... :-)  (check www.cygwin.com
>about the scope for these lists!)
>
>  This of course assumes that you've managed to install _ALL PARTS_ of gcc
>and it's associated tools. To verify this: read about reporting problems on
>the webpage (link above).
>
>
>  Still - to give you a hint on how to obtain information:
>
>$ man printf
>This shows a 'printf' that has nothing to do with C-programming... as you
>can see if you read some of the text... The hint is the word "shell" in the
>initial NOTE paragraph.
>
>$ man 3 printf
>This one OTOH has a lot of association with C programming... In the first
>few lines you'll find "#include <stdio.h>" - this indicates that you _MUST_
>include the "stdio" header to be able to use "printf" in C... My guess is
>that you have not done so, just because stderr and stdout at least are
>defined in stdio.h ( I guess fputc too).
>  errno OTOH has it's own header, dirname might be in stdlib I guess - 
>maybe
>or maybe not. Try to find out yourself.
>
>All these "header" files has a "home", one of these homes is this:
>$ ls /usr/include/
>press <tab>-key
>Display all 207 possibilities? (y or n) n
>
>207 files/dirs... =-)
>
>the stdio-header is there too:
>$ ls /usr/include/std*
>/usr/include/stdio.h  /usr/include/stdlib.h
>
>
>To look for stderr in the stdio-header:
>$ grep -i stderr /usr/include/stdio.h
>#define stderr  (_REENT->_stderr)
>#define stderr  (_impure_ptr->_stderr)
>#define _stderr_r(x)    ((x)->_stderr)
>
>
>Other helpful commands:
>  help
>	- information on bash internal commands
>
>  info
>	- search/read the info pages, in generel more structured than 'man'-pages
>
>  man -K <keyword>
>	- Look for <keyword> in all installed man pages (takes a while, but may
>proove 	helpful)
>
>  man <#> <keyword>
>	- look in section number <#> for <keyword> e.g.  man 3 printf  as above.
>
>
>HTH to get you started.
>
>Apart from this I reccomend you to find any good book on ANSI C, e.g. "The 
>C
>Programing Language" by B W Kernighan and D M Ritchie (ISBN 0-13-110362-8
>for the second edition - which is an OLD one).
>Note here that I'm not telling you that this is a good learning book, nor
>that it is the best reference around - but it sure is one that many has 
>used
>to get into the innards of the C language.
>
>
>/Hannu E K Nevalainen, 59~14'N, 17~12'E
>  ~ <=> degree
>
>--
>
>--END OF MESSAGE--
>
>
> > -----Original Message-----
> > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> > Of Vikram Mehta
> > Sent: Thursday, June 26, 2003 6:37 AM
> > To: Cygwin AT Cygwin DOT Com
> > Subject: _stderr, _stdout, _errno etc.
> >
> >
> > Hi folks
> >
> > I am trying to compile a file using gcc oin CYGWIN
> > I get undefined refrences to _sdterr, _stdout, dirname, _errno ,
> > fputc_unlocked etc.
> >
> > Can you tell me what library are they in
> >
> > Vikram
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>

_________________________________________________________________
Smile a little. Enjoy the summer with Joggers' Park! 
http://server1.msn.co.in/sp03/joggerspark/index.asp


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

- Raw text -


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