delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/09/10:47:08

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
Date: Tue, 9 Dec 2003 16:44:50 +0100
From: Jaroslaw Pawlak <jpawlak AT zeus DOT polsl DOT gliwice DOT pl>
To: cygwin AT cygwin DOT com
Subject: Re: problem with dll and stdout
Message-ID: <20031209164450.A15928@zeus.polsl.gliwice.pl>
References: <20031209132317 DOT B13511 AT zeus DOT polsl DOT gliwice DOT pl> <Pine DOT GSO DOT 4 DOT 56 DOT 0312090939320 DOT 3039 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.GSO.4.56.0312090939320.3039@slinky.cs.nyu.edu>; from pechtcha@cs.nyu.edu on Tue, Dec 09, 2003 at 09:50:53AM -0500

On Tue, Dec 09, 2003 at 09:50:53AM -0500, Igor Pechtchanski wrote:
> On Tue, 9 Dec 2003, Jaroslaw Pawlak wrote:
> 
> > hello, i have this problem, when i load dll written in cygwin to my
> > program(made in VC) all stdout is lost. I read on this list's archiwe that
> > it happens, but i never saw an solution. What to do to avoid loosing
> > stdout???
> > thanks in advance.
> > Jarek
> 
> Don't mix Cygwin DLLs with VC++ ones.  VC++ DLLs use MSVCRT as their C
> runtime, and Cygwin DLLs use cygwin1.dll.  This can create conflicts in
> all sorts of areas, especially terminal access (output streams).  You can
> create a non-Cygwin DLL by passing the '-mno-cygwin' option to gcc.
> 	Igor
Hello! the problem is i'm not using all gcc but only ld and ld does not 
understands the -mno-cygwin switch. Also i have to mix this cygwin dll 
with my VC program so this isn't good solution for me. If you say that 
this option -mno-cygwin would help then please tell me something more 
about 
gcc. I have changed ld becouse it had this 0 bit reloc bug, but when i 
tried to make my dll with gcc (i already got the *.obj so i used gcc olny 
for its -mno-cygwin switch) then i run into 0 bit reloc again. How to 
recompile the gcc alone? becouse binutils after compilation didn't left 
any gcc.exe.  What to do ???
Again, thanks for an answer!
Jarek 

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