[Mingw-w64-public] DWORD_PTR implemented as long long unsigned int
usually, any microsoft _PTR is a *, but DWORD_PTR is defined as long long unsigned int.winerrstr.cpp:83:24: error: invalid conversion from 'DWORD* {aka long unsigned int*}' to 'DWORD_PTR {aka long long unsigned int}' [-fpermissive] DWORD_PTR *dwpArray; dwpArray=(DWORD_PTR*)new DWORD_PTR[argc+1]; dongsheng daily 20141105 - Jim Michaels jmich...@yahoo.com j...@renewalcomputerservices.com http:#x2F;#x2F;RenewalComputerServices.com http:#x2F;#x2F;JesusnJim.com (computer repair info, programming) -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] [Patch] AD library (was Re: Missing Active Directory Libraries?)
On 12/16/2014 15:27, josealf wrote: PING? I can post the minimal samle code if needed, but mybe someone knows why the libraries libactiveds.a and libadsnta are not include in the 32bit compiler toolchains... Thanks for you reply. Kai, Patch OK? diff --git a/mingw-w64-crt/lib32/Makefile.am b/mingw-w64-crt/lib32/Makefile.am index 3d53e71..63f63fb 100644 --- a/mingw-w64-crt/lib32/Makefile.am +++ b/mingw-w64-crt/lib32/Makefile.am @@ -1,5 +1,7 @@ lib32_DATA = lib32_DATA += %reldir%/libaclui.a +lib32_DATA += %reldir%/libactiveds.a +lib32_DATA += %reldir%/libadsldpc.a lib32_DATA += %reldir%/libadvapi32.a lib32_DATA += %reldir%/libapcups.a lib32_DATA += %reldir%/libapi-ms-win-core-winrt-l1-1-0.a diff --git a/mingw-w64-crt/lib32/activeds.def b/mingw-w64-crt/lib32/activeds.def new file mode 100644 index 000..be89563 --- /dev/null +++ b/mingw-w64-crt/lib32/activeds.def @@ -0,0 +1,36 @@ +; +; Definition file of ACTIVEDS.dll +; Automatic generated by gendef +; written by Kai Tietz 2008 +; +LIBRARY ACTIVEDS.dll +EXPORTS +ADsGetObject@12 +ADsBuildEnumerator@8 +ADsFreeEnumerator@4 +ADsEnumerateNext@16 +ADsBuildVarArrayStr@12 +ADsBuildVarArrayInt@12 +ADsOpenObject@24 +DllCanUnloadNow@0 +DllGetClassObject@12 +ADsSetLastError@12 +ADsGetLastError@20 +AllocADsMem@4 +FreeADsMem@4 +ReallocADsMem@12 +AllocADsStr@4 +FreeADsStr@4 +ReallocADsStr@8 +ADsEncodeBinaryData@12 +PropVariantToAdsType@16 +AdsTypeToPropVariant@12 +AdsFreeAdsValues@8 +ADsDecodeBinaryData@12 +AdsTypeToPropVariant2@28 +PropVariantToAdsType2@32 +ConvertSecDescriptorToVariant@24 +ConvertSecurityDescriptorToSecDes@28 +BinarySDToSecurityDescriptor@24 +SecurityDescriptorToBinarySD@40 +ConvertTrusteeToSid@28 diff --git a/mingw-w64-crt/lib32/adsldpc.def b/mingw-w64-crt/lib32/adsldpc.def new file mode 100644 index 000..0fd1d21 --- /dev/null +++ b/mingw-w64-crt/lib32/adsldpc.def @@ -0,0 +1,189 @@ +; +; Definition file of adsldpc.dll +; Automatic generated by gendef +; written by Kai Tietz 2008 +; +LIBRARY adsldpc.dll +EXPORTS +; public: __thiscall CLexer::CLexer(void) +??0CLexer@@QAE@XZ ; has WINAPI (@0) +; public: __thiscall CLexer::~CLexer(void) +??1CLexer@@QAE@XZ ; has WINAPI (@0) +ADSIPrint@0 +ADsAbandonSearch@4 +ADsCloseSearchHandle@4 +ADsCreateAttributeDefinition@8 +ADsCreateClassDefinition@8 +ADsCreateDSObject@20 +ADsCreateDSObjectExt@28 +ADsDeleteAttributeDefinition@4 +ADsDeleteClassDefinition@4 +ADsDeleteDSObject@12 +ADsEnumAttributes@44 +ADsEnumClasses@16 +ADsExecuteSearch@124 +ADsFreeColumn@4 +ADsGetColumn@20 +ADsGetFirstRow@8 +ADsGetNextColumnName@8 +ADsGetNextRow@8 +ADsGetObjectAttributes@52 +ADsGetPreviousRow@8 +ADsHelperGetCurrentRowMessage@12 +ADsObject@8 +ADsSetObjectAttributes@48 +ADsSetSearchPreference@28 +ADsWriteAttributeDefinition@8 +ADsWriteClassDefinition@8 +AdsTypeToLdapTypeCopyConstruct@20 +AdsTypeToLdapTypeCopyDNWithBinary@12 +AdsTypeToLdapTypeCopyDNWithString@12 +AdsTypeToLdapTypeCopyGeneralizedTime@12 +AdsTypeToLdapTypeCopyTime@12 +BerBvFree@4 +BerEncodingQuotaControl@12 +BuildADsParentPath@12 +BuildADsParentPathFromObjectInfo2@12 +BuildADsParentPathFromObjectInfo@20 +BuildADsPathFromLDAPPath2@24 +BuildADsPathFromLDAPPath@12 +BuildADsPathFromParent@12 +BuildLDAPPathFromADsPath2@16 +BuildLDAPPathFromADsPath@8 +ChangeSeparator@4 +Component@8 +ConvertSidToString@12 +ConvertSidToU2Trustee@20 +ConvertU2TrusteeToSid@20 +FindEntryInSearchTable@12 +FindSearchTableIndex@12 +FreeObjectInfo@4 +GetDefaultServer@28 +GetDisplayName@8 +GetDomainDNSNameForDomain@28 +GetLDAPTypeName@8 +; public: long __thiscall CLexer::GetNextToken(unsigned short *,unsigned long *) +?GetNextToken@CLexer@@QAEJPAGPAK@Z ; has WINAPI (@8) +GetServerAndPort@12 +GetSyntaxOfAttribute@8 +InitObjectInfo@8 +; public: long __thiscall CLexer::InitializePath(unsigned short *) +?InitializePath@CLexer@@QAEJPAG@Z ; has WINAPI (@4) +IsGCNamespace@4 +LdapAddExtS@20 +LdapAddS@12 +LdapAttributeFree@4 +LdapCacheAddRef@4 +LdapCloseObject@4 +LdapCompareExt@28 +LdapControlFree@4 +LdapControlsFree@4 +LdapCountEntries@8 +LdapCrackUserDNtoNTLMUser2@12 +LdapCreatePageControl@20 +LdapDeleteExtS@16 +LdapDeleteS@8 +LdapFirstAttribute@16 +LdapFirstEntry@12 +LdapGetDn@12 +LdapGetNextPageS@24 +LdapGetSchemaObjectCount@20 +LdapGetSubSchemaSubEntryPath@16 +LdapGetSyntaxIdOfAttribute@4 +LdapGetSyntaxOfAttributeOnServer@24 +LdapGetValues@20 +LdapGetValuesLen@20 +LdapInitializeSearchPreferences@8 +LdapIsClassNameValidOnServer@20 +LdapMakeSchemaCacheObsolete@12 +LdapMemFree@4 +LdapModDnS@16 +LdapModifyExtS@20 +LdapModifyS@12 +LdapMsgFree@4 +LdapNextAttribute@16 +LdapNextEntry@12 +LdapOpenObject2@24 +LdapOpenObject@20 +LdapParsePageControl@16 +LdapParseResult@32 +LdapReadAttribute2@36 +LdapReadAttribute@28 +LdapReadAttributeFast@20 +LdapRenameExtS@28 +LdapResult@24 +LdapSearch@28 +LdapSearchAbandonPage@8 +LdapSearchExtS@44 +LdapSearchInitPage@48 +LdapSearchS@28 +LdapSearchST@32 +LdapTypeBinaryToString@12 +LdapTypeCopyConstruct@16 +LdapTypeFreeLdapModList@4 +LdapTypeFreeLdapModObject@4
Re: [Mingw-w64-public] [Patch] AD library (was Re: Missing Active Directory Libraries?)
JonY 2014-12-16 12:37: Hi, I will rebuild my builds(4.8.3, 4.9.2) this week. -- Regards, niXman ___ Dual-target(32 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingw-w64/ ___ Another online IDE: http://liveworkspace.org/ -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] windows 32 bit memory address space
You are probably using gcc to link the application. If so, add -Wl,--large-address-aware to gcc flags when building it and the exe would be able to use 3GB of memory instead of 2. That option worked for my gcc-compiled app on Windows 7 64 bit. 2014-12-16 1:37 GMT+02:00 Rashad M mohammedrasha...@gmail.com: Hello, On Tue, Oct 28, 2014 at 3:54 AM, Rashad M mohammedrasha...@gmail.com wrote: On Tue, Oct 28, 2014 at 12:51 AM, Kai Tietz ktiet...@googlemail.com wrote: Hi Rashad, 2014-10-27 20:13 GMT+01:00 Pavel pa...@pamsoft.cz: Hi Rashad, I believe this is given by the 32 bit implementation of Win32 API (surprisingly, the API on 64bit systems is also called Win32, but is implemented as 64bit). The system simply does not allow you to allocate more memory. It even looks like the 3GB option (4GT) is maybe not supported on Windows Vista/7/8 at all. Some interesting info can be found in this thread: http://www.sevenforums.com/general-discussion/114715-4-gigabyte-tunning-windows-7-ultimate-32-bit.html some other info related to pre-Vista systems is here: http://technet.microsoft.com/en-us/library/cc786709(v=WS.10).aspx Well, clearly - the answer is: if you want to allocate more than 2GB of memory, use 64bit application. Pavel That's not quite true ;) Even if it sounds easy Hi Kai, Thanks for reply. On 32-bit OSes --large-address-aware has an effect of enabling up to 3 GB of memory for a process, if all used DLL having this flag set too, all used DLL means from binuilts or gcc ? sorry to bother again, but I am stick stuck on this part. how to add this option? I knew its a linker flag but from where do I start adding this? ld.exe,gcc.exe or just my application ? and the boot-options of the OS have special option. Not recalling its exact name, but IIRC it was /4GB or something like that. Google will tell you by searching for large address aware ... I tried that too but didn't work On 64-bit the picture is different, as here this flag has indeed an effect even without addng boot-option. Here a 32-bit process can get up to 4GB of usable process-space. On 64bit even without any special flags and less RAM 3GB my code is working. The page says that supported OS are XP and 2003 Server. why --large-address-aware linker option is not helpful. Can anyone explain this? See for more details on msdn links like http://msdn.microsoft.com/en-us/library/windows/desktop/bb613473%28v=vs.85%29.aspx Regards, Kai -- ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Regards, Rashad -- Regards, Rashad -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] Missing Active Directory Libraries?
Hi, 2014-12-16 8:27 GMT+01:00 jose...@rocketmail.com: PING? I can post the minimal samle code if needed, but mybe someone knows why the libraries libactiveds.a and libadsnta are not include in the 32bit compiler toolchains... Thanks for you reply. Thank you for reporting. I think that those libraries simply fall through the radar on 32-bit. Actually we need for 32-bit the proper .def files for them. Then we will add them. For generation of those .def files you can use the gendef tool. You can find sources in our tool's section in repostory. Thanks, Kai -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [Patch] AD library (was Re: Missing Active Directory Libraries?)
Hi JonY, Patch is ok. Do we need to add new .def files now to Makefile.am? If so it is sad. Thanks, Kai -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] Trunk build fail
Recent trunk version of mingw-w64 runtime fail to build during last changes to huge headers: http://pastebin.com/XZ30gHtF Regards, Alexey. -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] DWORD_PTR implemented as long long unsigned int
2014-12-16 9:56 GMT+01:00 Jim Michaels jmich...@yahoo.com: usually, any microsoft _PTR is a *, but DWORD_PTR is defined as long long unsigned int. winerrstr.cpp:83:24: error: invalid conversion from 'DWORD* {aka long unsigned int*}' to 'DWORD_PTR {aka long long unsigned int}' [-fpermissive] DWORD_PTR *dwpArray; dwpArray=(DWORD_PTR*)new DWORD_PTR[argc+1]; Please see this link for the definitions of all Windows types: http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751.aspx Ruben dongsheng daily 20141105 - Jim Michaels jmich...@yahoo.com j...@renewalcomputerservices.com http:#x2F;#x2F;RenewalComputerServices.com http:#x2F;#x2F;JesusnJim.com (computer repair info, programming) -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] Trunk build fail
Actually, this comment only regenerated headers, which got broken by this: http://sourceforge.net/p/mingw-w64/mingw-w64/ci/b638e703a2bfbc19c61eaf293a94a1059f657075/ Anyway, the attached patch fixes the problem. Thanks, Jacek On 12/16/14 14:16, NAKAI Yuta wrote: The problem is introduced at this change (http://sourceforge.net/p/mingw-w64/mingw-w64/ci/d008dc5b65a93ec20734540cf7e45ad1e0692ee1/tree//mingw-w64-headers/include/mfobjects.h?diff=3418d798c1d9e96e3bb29901a28820efc7331608). Because #if 0 was deleted (accidentally?), the redefinition occurred. Date: Tue, 16 Dec 2014 14:44:08 +0400 From: alex...@gmail.com To: Mingw-w64-public@lists.sourceforge.net Subject: [Mingw-w64-public] Trunk build fail Recent trunk version of mingw-w64 runtime fail to build during last changes to huge headers: http://pastebin.com/XZ30gHtF Regards, Alexey. -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public commit 2554ccb6e9b048f53beca04d24a8aac1f0f1 Author: Jacek Caban ja...@codeweavers.com Date: Tue Dec 16 14:49:22 2014 +0100 mmreg.h: Fixed a typo. diff --git a/mingw-w64-headers/include/mfobjects.h b/mingw-w64-headers/include/mfobjects.h index c1c5d1e..fabd2bb 100644 --- a/mingw-w64-headers/include/mfobjects.h +++ b/mingw-w64-headers/include/mfobjects.h @@ -158,6 +158,7 @@ extern C { typedef ULONGLONG QWORD; #include mmreg.h +#if 0 typedef struct tWAVEFORMATEX { WORD wFormatTag; WORD nChannels; diff --git a/mingw-w64-headers/include/mmreg.h b/mingw-w64-headers/include/mmreg.h index ecc186b..953f78b 100644 --- a/mingw-w64-headers/include/mmreg.h +++ b/mingw-w64-headers/include/mmreg.h @@ -2725,7 +2725,7 @@ extern C { #endif #endif -#else /* defined (__WIDL__) +#else /* defined (__WIDL__) */ cpp_quote(#if 0) /* FIXME: #pragma pack(push, 1) */ typedef struct tWAVEFORMATEX { -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] Trunk build fail
Yes, please apply. Thing is that we need to disable typedef for non-widl case here Thanks, Kai 2014-12-16 14:50 GMT+01:00 Jacek Caban ja...@codeweavers.com: Actually, this comment only regenerated headers, which got broken by this: http://sourceforge.net/p/mingw-w64/mingw-w64/ci/b638e703a2bfbc19c61eaf293a94a1059f657075/ Anyway, the attached patch fixes the problem. Thanks, Jacek On 12/16/14 14:16, NAKAI Yuta wrote: The problem is introduced at this change (http://sourceforge.net/p/mingw-w64/mingw-w64/ci/d008dc5b65a93ec20734540cf7e45ad1e0692ee1/tree//mingw-w64-headers/include/mfobjects.h?diff=3418d798c1d9e96e3bb29901a28820efc7331608). Because #if 0 was deleted (accidentally?), the redefinition occurred. Date: Tue, 16 Dec 2014 14:44:08 +0400 From: alex...@gmail.com To: Mingw-w64-public@lists.sourceforge.net Subject: [Mingw-w64-public] Trunk build fail Recent trunk version of mingw-w64 runtime fail to build during last changes to huge headers: http://pastebin.com/XZ30gHtF Regards, Alexey. -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [Patch] AD library (was Re: Missing Active Directory Libraries?)
On 12/16/2014 18:34, Kai Tietz wrote: Hi JonY, Patch is ok. Do we need to add new .def files now to Makefile.am? If so it is sad. Done, changes pushed to master. 0xD4EBC740.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [Patch] AD library (was Re: Missing Active Directory Libraries?)
JonY 2014-12-17 01:02: Done, changes pushed to master. Won't this changes be packported to v3.x branch? -- Regards, niXman ___ Dual-target(32 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingw-w64/ ___ Another online IDE: http://liveworkspace.org/ -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] any reason why stack overflow just calling plain function?
On 15. 12. 2014 22:03, Jim Michaels wrote: it's when I do: char line[LINEBUFSIZE]; where LINEBUFSIZE is 8388608 Yes, this is the problem. There is a limit on how much memory you can allocate in this way (in contrast to new and malloc) and it depends on the size of the stack. The default stack size with mingw-w64 on Windows should be around 2 MiB. You can change the stack size using a linker option, like this: g++ -Wl,--stack,839 test.cpp -o test I think you should rather change the function to use heap allocation ( char *line = new char[LINEBUFSIZE]; ...; free(line); ), or better yet, use std::string or something else that expands automatically -- that way you don't have to set a limit for the length of the line. Next time, try to reduce your example source even more (according to SSCCE) when asking for help, more people will be inclined to help you. One possible example source would be this one: ---START OF SOURCE--- #include iostream void fn() { std::cout enter fn std::endl; std::cout.flush(); char buffer[8388608]; // make sure that the variable is not 'unused': std::cout leave fn ( (int)buffer[0] ) std::endl; std::cout.flush(); } int main() { std::cout enter main std::endl; std::cout.flush(); fn(); std::cout leave main std::endl; std::cout.flush(); return 0; } ---END OF SOURCE--- Notice that even when enter fn is before the line declaring buffer, it is not printed, because the allocation happens right after entering fn. -- David Macek -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] DWORD_PTR implemented as long long unsigned int
On 16. 12. 2014 13:19, Ruben Van Boxem wrote: 2014-12-16 9:56 GMT+01:00 Jim Michaels jmich...@yahoo.com mailto:jmich...@yahoo.com: usually, any microsoft _PTR is a *, but DWORD_PTR is defined as long long unsigned int. winerrstr.cpp:83:24: error: invalid conversion from 'DWORD* {aka long unsigned int*}' to 'DWORD_PTR {aka long long unsigned int}' [-fpermissive] DWORD_PTR *dwpArray; dwpArray=(DWORD_PTR*)new DWORD_PTR[argc+1]; Please see this link for the definitions of all Windows types: http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751.aspx I think PDWORD (and other P-types) is what you're looking for. -- David Macek -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public