This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: multithread safe program


Hi.
Thanks replying to my mail > Pat, Geoffrey.
I knew that the gnu-win32 cygnus library has not supported
multithread-safe yet. 
And I have tried also with mingw32 and libcrtdll.a, but it resulted in
failure. I wonder that maybe crtdll.dll in $WINDOWS directory is not
multithread-safe.

># like ld -e _mainCRTStartup mine.o libcmt.a libkernel32.a
>Several warnings are issued but executable is successfuly generated.
>But the executable is not able to run (DLL not found etc.).

Using objects Microsoft VC++ generated with gld, gld often issues that
the object has duplicated .text section. nm (in gnuwin32) reports that
two .text sections exists in the object.
In gld (ldlang.c), if section is duplicated and multiple same section
exists, the later section is ignored. I think that the gld cannot link 
with objects created by Microsoft C++ compiler in a few case. 

And I patched for gld that _imp__ is used for prefix of indirection of
symbols instead of __imp_.

Best Regards.
---
From: TANAKA Keishiro <ksr@lp.nm.fujitsu.co.jp>
Subject: multithread safe program
Date: Tue, 23 Dec 1997 14:35:39 +0900
Message-ID: <199712230535.OAA14498@kumando.lp.nm.fujitsu.co.jp>

ksr> Hi.
ksr> 
ksr> Can I create multithread program with gnu-win32 gcc ?
ksr> The library doesn't seem to be multithread safe.
ksr> 
ksr> I tried that I linked my objects with libcmt.a imported from Microsoft
ksr> libcmt.lib.
ksr> 
ksr> # like ld -e _mainCRTStartup mine.o libcmt.a libkernel32.a
ksr> Several warnings are issued but executable is successfuly generated.
ksr> But the executable is not able to run (DLL not found etc.).
ksr> 
ksr> Best Regards.
ksr> -
ksr> For help on using this list (especially unsubscribing), send a message to
ksr> "gnu-win32-request@cygnus.com" with one line of text: "help".
ksr> 
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]