www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/08/16/13:38:30

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-developers-unsubscribe-archive-cygwin-developers=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <37B84C39.83BD96F5@pe-muc.de>
Date: Mon, 16 Aug 1999 19:36:57 +0200
From: Jens Reimann <reim AT pe-muc DOT de>
Organization: Pichler Engineering GmbH
X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.6 sun4u)
MIME-Version: 1.0
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Cygwin, NT and Nutcracker

Hi ...

currently I'm working in a project where I have to port Unix source to
NT. The problem is that I don't want to use MS VC as compiler! Now i
started compiling my applications using Cygwin and Nutcracker. There
were some problems (syntax, defines, etc) but now I'm through and have
my applications running.

The last problem which had to be fixes was, that Nutcracker defined to
stdio streams as follows:

extern FILE     *_iob;

#define stdin        (&_iob[0])
#define stdout    (&_iob[1])
#define stderr        (&_iob[2])

where gnu defines them in the <reent.h> include with one for each
thread.

so when I linked I got the message symbol_iob not found. That's Ok.

now I made a simple file called iob.c which contains:

#include <reent.h>

struct __sFILE * _iob;

and compiled/linked a test application ... it worked ...

does anyone have some comments on this?? Do you think it is save? ...
Any other ideas?

thx

Jens Reimann

- Raw text -


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