delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/03/07:39:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <13017100.post@talk.nabble.com>
Date: Wed, 3 Oct 2007 04:38:57 -0700 (PDT)
From: Anton Mellit <mellit AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: "cout" and "cerr" won't work after cygwin1.dll init from VC++
In-Reply-To: <20061219210916.isuasdydhw4cwcc4@webmail.unizar.es>
MIME-Version: 1.0
X-Nabble-From: mellit AT gmail DOT com
References: <20061219210916 DOT isuasdydhw4cwcc4 AT webmail DOT unizar DOT es>
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



Francisco J. Royo Santas wrote:
> 
> Hello
> 
> I have a VC++ program that uses a Cygwin-compiled DLL. I can init
> cygwin1.dll
> but, after doing this, cout and cerr stop working. cout << "Message" <<
> endl
> does not appear on the screen. I do not know exactly what happens here.
> The
> program is:
> 
> cout << "Before" << endl;   // Appears
> HMODULE cygwinDll = LoadLibrary("cygwin1.dll");
> void (*init)() = (void (__cdecl *)(void)) GetProcAddress(cygwinDll,
> "cygwin_dll_init");
> init();
> cout << "After" << endl;    // Does nor appear
> 
> What is going on here?? What do I have to do to have cout and cerr back
> normally??
> 
> Thanks and G'bye
> Francisco J. Royo Santas
> 
> 
> --
> 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/
> 
> 
> 

Actually I had the same problem. I am trying to write a GP/PARI - package
for Python for Windows. GP/PARI is a software for numerical computation
which uses cygwin. After loading cygwin python stopped to produce any
output. The cure is to add "tty" parameter to the CYGWIN environment
variable.

Anton
-- 
View this message in context: http://www.nabble.com/%22cout%22-and-%22cerr%22-won%27t-work-after-cygwin1.dll-init-from-VC%2B%2B-tf2848024.html#a13017100
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
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