2010/8/30 Chris Sutcliffe <[email protected]>:
> On 30 August 2010 09:27, JonY wrote:
>> On 8/30/2010 21:00, Chris Sutcliffe wrote:
>>> The OpenProcessToken in particular has come to bite me in a bad way
>>> with Emerge Desktop. I ran in to this issue when using gendef to
>>> update the def files for w32api, in that I had to check for multiple
>>> export definitions of the same function and go to MSDN to determine
>>> which library is expected to export a given function.
>>
>> Thanks for the report. Do you have a list of symbols that are known to
>> conflict?
>
> Based on what I did with w32api:
>
> 2010-08-21 Chris Sutcliffe <[email protected]>
>
> * lib/kernel32.def (CopyLZFile, GetExpandedNameA,
> GetExpandedNameW, LZClose,
> LZCopy, LZInit, LZOpenFileA, LZOpenFileW, LZRead, LZSeek,
> OpenProcessToken,
> OpenThreadToken, RegCloseKey, RegCreateKeyExA, RegCreateKeyExW,
> RegDeleteKeyExA, RegDeleteKeyExW, RegDeleteValueA, RegDeleteValueW,
> RegEnumKeyExA, RegEnumKeyExW, RegEnumValueA, RegEnumValueW,
> RegFlushKey,
> RegGetKeySecurity, RegLoadKeyA, RegLoadKeyW, RegNotifyChangeKeyValue,
> RegOpenCurrentUser, RegOpenKeyExA, RegOpenKeyExW,
> RegOpenUserClassesRoot,
> RegQueryInfoKeyA, RegQueryInfoKeyW, RegQueryValueExA, RegQueryValueExW,
> RegRestoreKeyA, RegRestoreKeyW, RegSetKeySecurity, RegSetValueExA,
> RegSetValueW, RegUnLoadKeyA, RegUnLoadKeyW, RtlCaptureStackBackTrace,
> RtlFillMemory, RtlMoveMemory, RtlZeroMemory, SetThreadToken): Remove
> conflicting definition.
> * lib/th32.def: Remove.
> * lib/ntdll.def (RtlUnwind): Remove conflicting definition.
> * lib/version.def (VerLanguageNameA, VerLanguageNameW): Remove
> conflicting
> definition.
>
> However, I did not regenerate all def files, so there may be others as well.
>
> Chris
>
> --
> Chris Sutcliffe
> http://emergedesktop.org
> http://www.google.com/profiles/ir0nh34d
The issue you see here is related to the default import library order
given by gcc. It uses "-luser32 -lkernel32 -ladvapi32 -lshell32" which
leads here to the issue. IMHO kernel32 should come last here.
Something like this is more correct "-lshell32 -ladvapi32 -luser32
-lkernel32"
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public