Hi Kai,

On 7/16/10 8:42 AM, Kai Tietz wrote:
> Hello Chris,
>
>> I'm trying to compile Info-zip's zip 3.1c during the linking stage of
>> the 'dll' target.  The command I use to build the dll is:
>>
>> make -f win32/makefile.gcc CC=x86_64-w64-mingw32-gcc
>> RC=x86_64-w64-mingw32-windres NOASM=1 dll
>>
>> which compiles the object files fine, however, when linking:
>>
>> zipfilel.o:zipfile.c:(.text+0x15b1): undefined reference to 
>> `__p___mb_cur_max'
>> fileiol.o:fileio.c:(.text+0x508): undefined reference to `__p___mb_cur_max'
>> fileiol.o:fileio.c:(.text+0x59a): undefined reference to `__p___mb_cur_max'
>> fileiol.o:fileio.c:(.text+0x5b7): undefined reference to `__p___mb_cur_max'
>> fileiol.o:fileio.c:(.text+0x61b): undefined reference to `__p___mb_cur_max'
>> fileiol.o:fileio.c:(.text+0x64c): more undefined references to
>> `__p___mb_cur_max' follow
>>
>> which confuses me, given that mb_cur_max is exported by many libraries:
>>
>> $ grep -ri mb_cur_max *
>> Binary file libcrtdll.a matches
>> Binary file libmingwex.a matches
>> Binary file libmsvcr80.a matches
>> Binary file libmsvcrt.a matches
>> Binary file libwcrtdll.a matches
>> Binary file libwmsvcrt.a matches
>> Binary file libwmsvcrt20.a matches
>> Binary file libwmsvcrt40.a matches
> This issue is caused by a recent fixed bug in binutils' dllwrap tool.
> Please use a new binutils version (head) version. Then your problem
> should be solved.

I just tried with the latest Cygwin snapshot (20100726):

$ x86_64-w64-mingw32-dllwrap.exe --version
GNU x86_64-w64-mingw32-dllwrap (GNU Binutils) 2.20.51.20100726
Copyright 2010 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later 
version.
This program has absolutely no warranty.

I am still getting the same results.  Is there something I'm missing?

Thank you,

Chris


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to