Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3FC24682.2010406@users.sourceforge.net>
Date: Mon, 24 Nov 2003 18:57:22 +0100
From: Jerome Robert <jeromerobert@users.sourceforge.net>
Reply-To: jeromerobert@users.sourceforge.net
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.3) Gecko/20030313
X-Accept-Language: fr, en-us, en
MIME-Version: 1.0
To: mingw-users@lists.sourceforge.net, cygwin@cygwin.com
Subject: libmoldname.a with msvc
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello,
I created an executable with msvc, linked to libmoldname.a from mingw. I 
did it because my program is full of call to function underscored by 
Microsoft (_strdup, _putenv...). My executable is crashing each time I 
call a function from libmoldname. When debugging the assembly code I can 
see that the jump to __imp__putenv drive to a bad memory address. I can 
see from the map file created by the linker that __imp_putenv is 
included from msvcrt.lib. I also tryed to link my program with 
libmsvcrt.a but it crash before entering the main function. I am using 
mingw runtime 3.2 from the cygwin distribution.

Did someone tried to do this before and get the same troubles ?

Best regards,

Jerome.



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

