delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/29/20:44:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Robert O. Morris" <Robert DOT O DOT Morris AT jpl DOT nasa DOT gov>
To: <cygwin AT sourceware DOT cygnus DOT com>
Cc: "Distributed Oceanographic Data Server" <dods-tech AT unidata DOT ucar DOT edu>,
"Robert Morris" <Robert DOT O DOT Morris AT jpl DOT nasa DOT gov>
Subject: stdin, stderr -> Proper initialization for Cygwin dll run from non-cygwin apps (my case->matlab)
Date: Tue, 29 Jun 1999 17:40:12 -0700
Message-ID: <000001bec291$1cdf5f40$35a84e89@jpl.nasa.gov>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

Hi Cygwin Group !

  I've had problems lately getting a cygwin dll to run from
a non-cygwin application (matlab).  With help from this group,
I have that code executing . . . . however, I can tell that
things are not initialized quite correctly as yet.

  I can't use stdout, stderr in that dll code.  fprintf(stderr, . . . )
bombs matlab for example.

 I can see from the discussions in the group that I need to initialize
_reent defined in <sys/reent.h> correctly.  There might be other
dll initialization issues lurking also . . . but . . . one at a time.
I see a lot of mentions in the cygwin-developers mailing list, but
that is either not at my level - or it is not intended for people
that just write/port applications that use cygwin.

  Is there any documentation or pointers on how I should initialize that ?
I havn't been able to reference anything that gets me to the point where
stdin, stdout, etc. work as they normally do.

---- side point ----
  I'm also wondering if these dll initialization issues have anything to
do with thesed fr failure (on win98) of access() and popen() uom within
this cygwin dll run from matlab.  hmmmm . . . .  Access() when testing
for execute permission should always return true on win98 I would think.
Instead, it bombs matlab.
---- end side point ----

Any pointers appreciated . . . .

and thanks !

Rob Morris
Jet Propulsion Laboratory


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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