This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, 3/4] Enable libstdc++ as a DLL on windows platforms.
2009/7/18 Dave Korn <dave.korn.cygwin@googlemail.com>:
> Kai Tietz wrote:
>
>>> No, actually I believe your statement is wrong, Kai.
>>
>> I don't think so. As mingw targets (and even cygwin) are using always
>> shared runtime,
>
> ?What?
>
> cygcheck ./n.exe
> F:\cygwin-1.7\tmp\cxx\new\retest4\n.exe
> ?F:\cygwin-1.7\bin\cygstdc++-6.dll
> ? ?F:\cygwin-1.7\bin\cygwin1.dll
> ? ? ?C:\WINNT\system32\ADVAPI32.DLL
> ? ? ? ?C:\WINNT\system32\NTDLL.DLL
> ? ? ? ?C:\WINNT\system32\KERNEL32.DLL
> ? ? ? ?C:\WINNT\system32\RPCRT4.DLL
> ? ?F:\cygwin-1.7\bin\cyggcc_s-1.dll
>
> ?I don't see any reference to the MSVCRT in that random C++ executable. ?Did
> you mean some other runtime? ?Cygwin does not get on happily with MSVCRT at
> all. ?We don't use the MS headers either, so how would defining _DLL make a
> difference? ?It may well be that MinGW wants to use something other than _DLL
> as the trigger in the MinGW os_defines.h to choose dllimport or not.
>
> ? ?cheers,
> ? ? ?DaveK
>
>
Yes, I know that cygwin doesn't depends on msvcrt. But I was just
talking here in example about the use of _DLL. As it is used by VC, it
gets defined when you use dll version of C-runtime. And I wanted just
to make clear, that even cygwin uses shared runtime (but of course not
msvcrt).
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination