2010/11/17 Ozkan Sezer <[email protected]>:
> On Wed, Nov 17, 2010 at 3:11 PM, Valeriy Krizhevich
> <[email protected]> wrote:
>> Hello everybody!
>>
>> I am trying to develop an application using MinGW-w64.
>>
>> I am compiling my project on Windows 2000 Professional (32-bit) in
>> Code::Blocks IDE.
>>
>> It works fine with standard MinGW32 compiling 32-bit projects.
>>
>> But when I try to compile the same or any other project with
>> MinGW-w64, both cc1.exe and cc1plus.exe show me message box "Procedure
>> entry point ___lc_codepage_func could not be located in the dynamic
>> link library msvcrt.dll".
>>
>> I see this box even simply launching cc1.exe and cc1plus.exe from the
>> directory where they reside.
>>
>> I have examined msvcrt.dll in my %SYSTEMROOT%\system32 using
>> LoadLibrary and GetProcAddress functions. It seems, that my version of
>> this dll does not export ___lc_codepage_func.
>>
>> But msvcr70, 71, 80 and 90 really do!
>>
>> How may this be fixed?
>>
>> On my other machine with Windows 7 Professional 64-bit MinGW-w64 works fine.
>>
>> I shall test it on 32-bit Windows XP Pro.
>>
>> I think, problem is that Windows 2000 has different version of
>> msvcrt.dll than gcc needs.
>>
>> For MinGW installation, I used fresh TDM bundle installers based on
>> gcc-4.5.1.
>>
>> TDM bundle based on standard MinGW worked on Windows 2000 fine, but
>> based on MinGW-w64 has this bug (tries to import unexported function).
>>
>> Best regards,
>>
>> VK
>>
>
> Maybe we should do what mingw.org does, at least for w32:
> http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/mingwex/mb_wc_common.h?cvsroot=src
> (see latest revision there). We used ___lc_codepage_func() because
> it was the cleaner solution by comparison to what mingw does.
>
> --
> O.S.
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
Hmm, I don't think we should remove it. It would be better to provide
this function, which internally forwards to msvcrt - if function is
present - and otherwise simply return ACP_CP as default.
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public