This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: _stderr, _stdout, _errno etc.

On Sat, 28 Jun 2003, Vikram Mehta wrote:

> 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
> Can u help me here

I doubt it, your not giving anyone much to go on. If you are having a problem
running a command, it would make sense to tell us what command failed for you
(and what output you received from the command), no?

As I said in a follow-up reply yesterday, basename is not yet in a Cygwin
release, it will be in one of the 1.5 releases, however.

What happens when you try and compile

--- CUR HERE ---
#include <errno.h>
#include <stdio.h>

main ()
  char in[80];

  fprintf (stdout, "enter a string: ");
  scanf ("%s", in);
  fprintf (stderr, ""
                   "you typed: %s\n"
                   "errno (%d)\n"
                   "", in, errno ? errno : 0);
  return 0;
--- CUT HERE ---


$ gcc above.c
$ ./a


If you get error's, try re-installing the 'gcc' package and/or the 'cygwin'
package, and if after doing so you still recieve error's, see
<> on how to report your findings and provide
more information to help fix your problem.


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]